Skip to content

Conv & Pool

16 ops, 101 workloads — Pooling 13 · Convolution 3.

One table per op, one row per workload. Ratio is the fastest other implementation's device time divided by ours, so green is faster than it, plain is level with it, red is slower. Times are in ms. How these numbers are taken.

Pooling

AvgPool1dFwd

input: [N, C, L_in]

  • audio-downsampleinput: [4, 128, 4096]kernel_size=3stride=2padding=1dtype=f16, f32
  • long-temporalinput: [2, 256, 32000]kernel_size=5stride=4padding=2dtype=f16
  • ceilinput: [2, 128, 2048]kernel_size=4stride=2padding=1ceil_mode=truecount_include_pad=falsedtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
audio-downsamplef161.20×0.0031torch-compile
torch-ref
0.00371
0.0152
1.35··
f321.02×0.00438torch-compile
torch-ref
0.00448
0.0152
0.957··
long-temporalf161.53×0.0107torch-compile
torch-ref
0.0164
0.0591
2.29··
ceilbf161.12×0.00189torch-compile
torch-ref
0.00211
0.00522
0.694··

AvgPool2dFwd

input: [N, C, H_in, W_in]

stride=[2,2]

  • vision-3x3-s2input: [2, 64, 112, 112]kernel_size=[3,3]padding=[1,1]dtype=f16, f32
  • vision-5x5-s2input: [2, 128, 56, 56]kernel_size=[5,5]padding=[2,2]dtype=f16
  • ceil-divisorinput: [3, 96, 55, 57]kernel_size=[3,5]padding=[1,2]ceil_mode=truecount_include_pad=falsedivisor_override=7dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
vision-3x3-s2f161.29×0.00285torch-compile
flaggems
torch-ref
0.00368
0.00675
0.00886
1.39··
f321.35×0.00352torch-compile
flaggems
torch-ref
0.00477
0.00672
0.00899
1.13··
vision-5x5-s2f161.99×0.00368flaggems
torch-ref
torch-compile
0.00733
0.00973
0.0164
1.36··
ceil-divisorbf161.27×0.00298torch-compile
flaggems
torch-ref
0.00378
0.00627
0.00742
1.2··

AvgPool3dFwd

input: [N, C, D_in, H_in, W_in]

stride=[2,2,2]

  • video-2x2x2input: [1, 32, 16, 56, 56]kernel_size=[2,2,2]padding=[0,0,0]dtype=f16, f32
  • ceil-videoinput: [2, 64, 8, 28, 28]kernel_size=[2,3,3]padding=[1,1,1]ceil_mode=truecount_include_pad=falsedtype=f16
  • divisorinput: [2, 24, 10, 20, 22]kernel_size=[2,2,3]padding=[0,1,1]divisor_override=7dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
video-2x2x2f161.15×0.00234torch-compile
cudnn
torch-ref
0.00269
0.00512
0.00947
0.773··
f321.16×0.00317torch-compile
cudnn
torch-ref
0.00368
0.00557
0.00979
0.57··
ceil-videof161.22×0.0031torch-compile
cudnn
torch-ref
0.00378
0.00547
0.0113
0.628··
divisorbf161.04×0.0017torch-compile
torch-ref
0.00176
0.00496
0.198··

MaxPool1dFwd

input: [N, C, L_in]

  • sincnet-localinput: [32, 80, 4096]kernel_size=3stride=3dtype=f16, f32
  • textcnn-globalinput: [64, 256, 128]kernel_size=128stride=1dtype=f16
  • ecg-cnn-dilatedinput: [16, 128, 2048]kernel_size=5stride=2padding=2dilation=2ceil_mode=truedtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
sincnet-localf161.03×0.00886torch-compile
torch-ref
0.00909
0.0506
1.18··
f321.01×0.0133torch-compile
torch-ref
0.0134
0.0500
0.789··
textcnn-globalf161.02×0.00285torch-compile
torch-ref
0.00291
0.0258
0.736··
ecg-cnn-dilatedbf161.30×0.00544torch-compile
torch-ref
0.00707
0.0353
1.92··

MaxPool1dIndicesFwd

input: [N, C, L_in]

  • sincnet-localinput: [32, 80, 4096]kernel_size=3stride=3dtype=f16, f32
  • textcnn-globalinput: [64, 256, 128]kernel_size=128stride=1dtype=f16
  • ecg-cnn-dilatedinput: [16, 128, 2048]kernel_size=5stride=2padding=2dilation=2ceil_mode=truedtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
sincnet-localf161.01×0.0139torch-compile
torch-ref
0.0140
0.0507
0.755··
f321.00×0.0194torch-compile
torch-ref
0.0195
0.0500
0.541··
textcnn-globalf161.83×0.00397torch-compile
torch-ref
0.00726
0.0258
0.529··
ecg-cnn-dilatedbf161.25×0.00966torch-compile
torch-ref
0.0121
0.0353
1.08··

MaxPool2dFwd

input: [N, C, H_in, W_in]

stride=[2,2]dtype=bf16, f32

  • resnet-steminput: [32, 64, 112, 112]kernel_size=[3,3]padding=[1,1]
  • vgg-blockinput: [16, 128, 56, 56]kernel_size=[2,2]padding=[0,0]
  • alexnet-ceilinput: [32, 64, 55, 55]kernel_size=[3,3]padding=[0,0]ceil_mode=true
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
resnet-stembf161.53×0.0217torch-compile
flaggems
torch-ref
0.0332
0.0780
0.1392
2.63··
f321.67×0.0292torch-compile
flaggems
torch-ref
0.0487
0.0785
0.1345
1.95··
vgg-blockbf161.13×0.00515torch-compile
flaggems
torch-ref
0.00582
0.0141
0.0275
1.25··
f321.03×0.00851torch-compile
flaggems
torch-ref
0.00874
0.0136
0.0273
0.755··
alexnet-ceilbf161.71×0.0063torch-compile
flaggems
torch-ref
0.0108
0.0219
0.0346
2.13··
f321.71×0.00893torch-compile
flaggems
torch-ref
0.0152
0.0213
0.0338
1.51··

MaxPool2dIndicesFwd

input: [N, C, H_in, W_in]

stride=[2,2]dtype=bf16, f32

  • resnet-steminput: [32, 64, 112, 112]kernel_size=[3,3]padding=[1,1]
  • vgg-blockinput: [16, 128, 56, 56]kernel_size=[2,2]padding=[0,0]
  • alexnet-ceilinput: [32, 64, 55, 55]kernel_size=[3,3]padding=[0,0]ceil_mode=true
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
resnet-stembf162.27×0.0289torch-compile
flaggems
torch-ref
0.0656
0.0781
0.1392
1.97··
f321.63×0.0403torch-compile
flaggems
torch-ref
0.0658
0.0784
0.1346
1.42··
vgg-blockbf161.07×0.008torch-compile
flaggems
torch-ref
0.00858
0.0140
0.0275
0.803··
f321.02×0.0111torch-compile
flaggems
torch-ref
0.0113
0.0136
0.0273
0.58··
alexnet-ceilbf162.20×0.00832torch-compile
flaggems
torch-ref
0.0183
0.0220
0.0346
1.62··
f321.57×0.0109torch-compile
flaggems
torch-ref
0.0171
0.0212
0.0338
1.24··

MaxPool3dFwd

input: [N, C, D_in, H_in, W_in]

  • c3d-pool1input: [8, 64, 16, 112, 112]kernel_size=[1,2,2]stride=[1,2,2]padding=[0,0,0]dtype=f16, f32
  • c3d-pool2input: [4, 128, 16, 56, 56]kernel_size=[2,2,2]stride=[2,2,2]padding=[0,0,0]dtype=f16
  • medicalnet-steminput: [2, 64, 32, 112, 112]kernel_size=[3,3,3]stride=[2,2,2]padding=[1,1,1]ceil_mode=truedtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
c3d-pool1f161.06×0.0670torch-compile
cudnn
torch-ref
0.0709
0.2988
0.5181
1.53··
f321.00×0.1149torch-compile
cudnn
torch-ref
0.1149
0.3397
0.5248
0.894··
c3d-pool2f161.15×0.0157torch-compile
cudnn
torch-ref
0.0180
0.0566
0.0910
1.64··
medicalnet-stembf162.73×0.0947cudnn
torch-ref
torch-compile
0.2583
0.3342
0.6667
1.83··

MaxPool3dIndicesFwd

input: [N, C, D_in, H_in, W_in]

  • c3d-pool1input: [8, 64, 16, 112, 112]kernel_size=[1,2,2]stride=[1,2,2]padding=[0,0,0]dtype=f16, f32
  • c3d-pool2input: [4, 128, 16, 56, 56]kernel_size=[2,2,2]stride=[2,2,2]padding=[0,0,0]dtype=f16
  • medicalnet-steminput: [2, 64, 32, 112, 112]kernel_size=[3,3,3]stride=[2,2,2]padding=[1,1,1]ceil_mode=truedtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
c3d-pool1f161.06×0.1177torch-compile
torch-ref
0.1244
0.5179
0.873··
f321.00×0.1632torch-compile
torch-ref
0.1633
0.5249
0.63··
c3d-pool2f161.34×0.0213torch-compile
torch-ref
0.0286
0.0910
1.21··
medicalnet-stembf1613.77×0.1285torch-ref
torch-compile
0.3349
1.7692
1.35··

AdaptiveAvgPool2dFwd

input: [*B, C, H_in, W_in]

  • resnet-gapinput: [8, 2048, 7, 7]output_size=[1,1]dtype=f16
  • spp-6x6input: [2, 128, 56, 56]output_size=[6,6]dtype=f16
  • nondiv-7x7input: [2, 64, 55, 57]output_size=[7,7]dtype=bf16
  • resnet-gap-unbatchedinput: [2048, 7, 7]output_size=[1,1]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
resnet-gapf161.68×0.00218torch-compile
torch-ref
0.00365
0.00726
0.369··
spp-6x6f163.74×0.00272torch-ref
torch-compile
0.0102
0.0102
0.339··
nondiv-7x7bf163.79×0.0023torch-ref
torch-compile
0.00874
0.00874
0.213··
resnet-gap-unbatchedf161.58×0.0017torch-compile
torch-ref
0.00269
0.0031
0.0592··

AdaptiveMaxPool2dFwd

input: [*B, C, H_in, W_in]

  • global-1x1input: [8, 2048, 7, 7]output_size=[1,1]dtype=f16
  • spp-6x6input: [2, 128, 56, 56]output_size=[6,6]dtype=f16
  • nondiv-7x7input: [2, 64, 55, 57]output_size=[7,7]dtype=bf16
  • global-1x1-unbatchedinput: [2048, 7, 7]output_size=[1,1]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
global-1x1f161.52×0.00227torch-compile
torch-ref
0.00346
0.0470
0.353··
spp-6x6f164.43×0.00307torch-compile
torch-ref
0.0136
0.0136
0.3··
nondiv-7x7bf163.49×0.00314torch-ref
torch-compile
0.0109
0.0109
0.157··
global-1x1-unbatchedf161.50×0.00179torch-compile
torch-ref
0.00269
0.0126
0.056··

AdaptiveMaxPool2dIndicesFwd

input: [*B, C, H_in, W_in]

  • global-1x1input: [8, 2048, 7, 7]output_size=[1,1]dtype=f16
  • spp-6x6input: [2, 128, 56, 56]output_size=[6,6]dtype=f16
  • nondiv-7x7input: [2, 64, 55, 57]output_size=[7,7]dtype=bf16
  • global-1x1-unbatchedinput: [2048, 7, 7]output_size=[1,1]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
global-1x1f163.89×0.00243torch-compile
torch-ref
0.00947
0.0469
0.33··
spp-6x6f164.21×0.00323torch-ref
torch-compile
0.0136
0.0136
0.285··
nondiv-7x7bf163.38×0.00323torch-compile
torch-ref
0.0109
0.0109
0.152··
global-1x1-unbatchedf163.65×0.00201torch-compile
torch-ref
0.00736
0.0126
0.0498··

MeanPoolingFwd

x: [B, S, H, D]

chunk_size=64

  • uniform-8kx: [1, 8192, 64, 128]dtype=bf16/f32
  • uniform-batchedx: [2, 2048, 64, 128]dtype=f16/f32

x: [B, S, H, D]cu_seqlens: [NS + 1], i32chunk_indices: [NC, 2], i32

  • ragged-evenx: [1, 8192, 64, 128]cu_seqlens: [5], i32chunk_indices: [128, 2], i32seq_lens=repeat(2048, 4)chunk_size=64dtype=f16/f32, f32/f32
  • ragged-tailx: [1, 1000, 64, 128]cu_seqlens: [5], i32chunk_indices: [34, 2], i32seq_lens=[100,200,300,400]chunk_size=32dtype=f16/f32
  • ragged-batchedx: [2, 2048, 64, 128]cu_seqlens: [3], i32chunk_indices: [32, 2], i32seq_lens=repeat(1024, 2)chunk_size=64dtype=f16/f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
uniform-8kbf16/f321.46×0.0302torch-view-mean
torch-compile
torch-ref
0.0442
0.3391
0.6224
2.26··
uniform-batchedf16/f321.52×0.0162torch-view-mean
torch-compile
torch-ref
0.0246
0.1295
0.1694
2.1··
ragged-evenf16/f329.60×0.0316torch-segment-reduce
torch-compile
torch-ref
0.3034
0.3388
0.6144
2.16··
f32/f321.19×0.0612torch-segment-reduce
torch-compile
torch-ref
0.0729
0.3250
0.6414
1.11··
ragged-tailf16/f325.58×0.00771torch-segment-reduce
torch-compile
torch-ref
0.0431
0.1065
0.2163
1.1··
ragged-batchedf16/f327.33×0.0177torch-compile
torch-ref
torch-segment-reduce
0.1294
0.1744
0.2646
1.93··

Convolution

Conv1dFwd

input: [N, C_in, L_in]weight: [C_out, C_in_g, kW]

dtype=bf16

  • whisper-conv1input: [1, 80, 3000]weight: [1280, 80, 3]
  • wav2vec2-layer1input: [1, 1, 16000]weight: [512, 1, 10]stride=5
  • encodec-initinput: [1, 1, 24000]weight: [32, 1, 7]
  • encodec-deepinput: [1, 128, 600]weight: [256, 128, 10]

input: [N, C_in, L_in]weight: [C_out, C_in_g, kW]bias: [C_out]

dtype=bf16

  • whisper-conv1-biasinput: [1, 80, 3000]weight: [1280, 80, 3]bias: [1280]
  • wav2vec2-layer1-biasinput: [1, 1, 16000]weight: [512, 1, 10]bias: [512]stride=5
  • encodec-init-biasinput: [1, 1, 24000]weight: [32, 1, 7]bias: [32]
  • encodec-deep-biasinput: [1, 128, 600]weight: [256, 128, 10]bias: [256]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
whisper-conv1bf161.45×0.0222torch
torch-compile
flaggems
0.0322
0.0322
0.1031
82.8··
wav2vec2-layer1bf161.91×0.00626torch
torch-compile
flaggems
0.0119
0.0120
0.0408
5.24··
encodec-initbf163.49×0.0023torch
torch-compile
flaggems
0.00803
0.00806
0.0242
4.67··
encodec-deepbf161.71×0.00957torch-compile
torch
flaggems
0.0164
0.0164
0.0750
40.5··
whisper-conv1-biasbf161.72×0.0228torch-compile
torch
flaggems
0.0392
0.0449
0.1026
81··
wav2vec2-layer1-biasbf162.37×0.00659torch-compile
torch
flaggems
0.0156
0.0186
0.0397
5.22··
encodec-init-biasbf164.37×0.0024torch-compile
torch
flaggems
0.0105
0.0122
0.0233
4.8··
encodec-deep-biasbf161.80×0.0100torch-compile
torch
flaggems
0.0180
0.0195
0.0742
38.7··

Conv2dFwd

input: [N, C_in, H, W]weight: [C_out, C_in_g, kH, kW]

  • resnet-3x3input: [2, 64, 56, 56]weight: [64, 64, 3, 3]stride=[1,1]padding=[1,1]dtype=bf16
  • steminput: [1, 3, 112, 112]weight: [64, 3, 3, 3]stride=[2,2]padding=[1,1]dtype=f16
  • stage-down-3x3input: [1, 128, 56, 56]weight: [256, 128, 3, 3]stride=[2,2]padding=[1,1]dtype=f16
  • highresinput: [1, 256, 112, 112]weight: [512, 256, 3, 3]stride=[1,1]padding=[1,1]dtype=f16
  • midresinput: [1, 64, 56, 56]weight: [128, 64, 5, 5]stride=[1,1]padding=[2,2]dtype=f16
  • stage-down-5x5input: [1, 128, 56, 56]weight: [256, 128, 5, 5]stride=[2,2]padding=[2,2]dtype=f16
  • stride2input: [1, 128, 28, 28]weight: [128, 128, 3, 3]stride=[2,2]padding=[1,1]dtype=bf16
  • resnet-1x1input: [2, 64, 56, 56]weight: [256, 64, 1, 1]stride=[1,1]padding=[0,0]dtype=bf16
  • bottleneck-expandinput: [2, 128, 28, 28]weight: [512, 128, 1, 1]stride=[1,1]padding=[0,0]dtype=f16
  • bottleneck-reduceinput: [2, 512, 28, 28]weight: [128, 512, 1, 1]stride=[1,1]padding=[0,0]dtype=f16
  • late-stage-1x1input: [1, 256, 14, 14]weight: [1024, 256, 1, 1]stride=[1,1]padding=[0,0]dtype=f16
  • classifier-1x1input: [1, 512, 7, 7]weight: [2048, 512, 1, 1]stride=[1,1]padding=[0,0]dtype=f16
  • deeplabv3-asppinput: [1, 2048, 32, 32]weight: [256, 2048, 3, 3]stride=[1,1]padding=[12,12]dilation=[12,12]dtype=f16
  • mbv2-depthwiseinput: [1, 32, 56, 56]weight: [32, 1, 3, 3]stride=[1,1]padding=[1,1]groups=32dtype=f16
  • resnext-grouped-3x3input: [1, 128, 28, 28]weight: [256, 4, 3, 3]stride=[1,1]padding=[1,1]groups=32dtype=f16

input: [N, C_in, H, W]weight: [C_out, C_in_g, kH, kW]bias: [C_out]

  • resnet-3x3-biasinput: [2, 64, 56, 56]weight: [64, 64, 3, 3]bias: [64]stride=[1,1]padding=[1,1]dtype=bf16
  • stem-biasinput: [1, 3, 112, 112]weight: [64, 3, 3, 3]bias: [64]stride=[2,2]padding=[1,1]dtype=f16
  • stage-down-3x3-biasinput: [1, 128, 56, 56]weight: [256, 128, 3, 3]bias: [256]stride=[2,2]padding=[1,1]dtype=f16
  • highres-biasinput: [1, 256, 112, 112]weight: [512, 256, 3, 3]bias: [512]stride=[1,1]padding=[1,1]dtype=f16
  • midres-biasinput: [1, 64, 56, 56]weight: [128, 64, 5, 5]bias: [128]stride=[1,1]padding=[2,2]dtype=f16
  • stage-down-5x5-biasinput: [1, 128, 56, 56]weight: [256, 128, 5, 5]bias: [256]stride=[2,2]padding=[2,2]dtype=f16
  • stride2-biasinput: [1, 128, 28, 28]weight: [128, 128, 3, 3]bias: [128]stride=[2,2]padding=[1,1]dtype=bf16
  • resnet-1x1-biasinput: [2, 64, 56, 56]weight: [256, 64, 1, 1]bias: [256]stride=[1,1]padding=[0,0]dtype=bf16
  • bottleneck-expand-biasinput: [2, 128, 28, 28]weight: [512, 128, 1, 1]bias: [512]stride=[1,1]padding=[0,0]dtype=f16
  • bottleneck-reduce-biasinput: [2, 512, 28, 28]weight: [128, 512, 1, 1]bias: [128]stride=[1,1]padding=[0,0]dtype=f16
  • late-stage-1x1-biasinput: [1, 256, 14, 14]weight: [1024, 256, 1, 1]bias: [1024]stride=[1,1]padding=[0,0]dtype=f16
  • classifier-1x1-biasinput: [1, 512, 7, 7]weight: [2048, 512, 1, 1]bias: [2048]stride=[1,1]padding=[0,0]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
resnet-3x3bf161.59×0.00717torch-compile
torch
flaggems
0.0114
0.0144
0.0827
63··
stemf162.14×0.00304torch
torch-compile
flaggems
0.0065
0.0095
0.0126
3.52··
stage-down-3x3f161.35×0.00954torch-compile
torch
flaggems
0.0128
0.0163
0.1189
47.3··
highresf161.54×0.0649torch
torch-compile
flaggems
0.0997
0.1020
0.7345
451··
midresf161.64×0.0104torch-compile
torch
flaggems
0.0171
0.0200
0.2069
118··
stage-down-5x5f161.41×0.0122torch-compile
torch
flaggems
0.0172
0.0203
0.3103
101··
stride2bf161.91×0.0064torch-compile
torch
flaggems
0.0122
0.0143
0.0636
8.61··
resnet-1x1bf160.99×0.00384torch
torch-compile
flaggems
0.00381
0.00806
0.0463
53.5··
bottleneck-expandf161.20×0.0033torch
torch-compile
flaggems
0.00397
0.0073
0.0287
62.4··
bottleneck-reducef160.98×0.00422torch
torch-compile
flaggems
0.00413
0.00768
0.0263
48.6··
late-stage-1x1f161.57×0.00397torch
torch-compile
flaggems
0.00624
0.00653
0.0154
25.9··
classifier-1x1f161.02×0.00672torch-compile
torch
flaggems
0.00688
0.0088
0.0205
15.3··
deeplabv3-asppf162.09×0.0386torch-compile
torch
flaggems
0.0806
0.1099
0.7148
141··
mbv2-depthwisef161.49×0.00202torch
torch-compile
flaggems
0.00301
0.00554
0.0542
0.875··
resnext-grouped-3x3f164.92×0.00384torch-compile
torch
flaggems
0.0189
0.0189
0.0192
3.59··
resnet-3x3-biasbf161.63×0.00739torch-compile
torch
flaggems
0.0120
0.0180
0.0823
61.1··
stem-biasf162.68×0.00352torch
torch-compile
flaggems
0.00944
0.00982
0.0116
3.1··
stage-down-3x3-biasf161.44×0.0096torch-compile
torch
flaggems
0.0138
0.0193
0.1177
47··
highres-biasf161.27×0.0672torch-compile
torch
flaggems
0.0853
0.1190
0.7350
436··
midres-biasf161.61×0.0109torch-compile
torch
flaggems
0.0175
0.0234
0.2058
113··
stage-down-5x5-biasf161.50×0.0121torch-compile
torch
flaggems
0.0181
0.0231
0.3097
102··
stride2-biasbf161.83×0.00698torch-compile
torch
flaggems
0.0127
0.0170
0.0627
7.9··
resnet-1x1-biasbf162.11×0.0041torch-compile
torch
flaggems
0.00864
0.0113
0.0454
50.6··
bottleneck-expand-biasf162.21×0.00352torch-compile
torch
flaggems
0.00777
0.00877
0.0277
58.6··
bottleneck-reduce-biasf161.85×0.00387torch
torch-compile
flaggems
0.00717
0.00797
0.0254
53.1··
late-stage-1x1-biasf161.60×0.00429torch-compile
torch
flaggems
0.00688
0.00922
0.0149
24··
classifier-1x1-biasf161.25×0.00712torch-compile
torch
flaggems
0.00893
0.0118
0.0199
14.4··

Conv3dFwd

input: [N, C_in, D, H, W]weight: [C_out, C_in_g, kD, kH, kW]

  • r3d-steminput: [1, 3, 16, 112, 112]weight: [64, 3, 3, 3, 3]stride=[1,1,1]padding=[1,1,1]dtype=f16
  • video-downinput: [1, 64, 8, 56, 56]weight: [128, 64, 3, 3, 3]stride=[2,2,2]padding=[1,1,1]dtype=f16
  • unet-encoderinput: [1, 32, 32, 64, 64]weight: [64, 32, 3, 3, 3]stride=[1,1,1]padding=[1,1,1]dtype=bf16
  • unet-asppinput: [1, 256, 8, 16, 16]weight: [256, 256, 3, 3, 3]stride=[1,1,1]padding=[6,6,6]dilation=[6,6,6]dtype=f16
  • resnext-groupedinput: [1, 64, 8, 28, 28]weight: [128, 2, 3, 3, 3]stride=[1,1,1]padding=[1,1,1]groups=32dtype=f16

input: [N, C_in, D, H, W]weight: [C_out, C_in_g, kD, kH, kW]bias: [C_out]

padding=[1,1,1]

  • r3d-stem-biasinput: [1, 3, 16, 112, 112]weight: [64, 3, 3, 3, 3]bias: [64]stride=[1,1,1]dtype=f16
  • video-down-biasinput: [1, 64, 8, 56, 56]weight: [128, 64, 3, 3, 3]bias: [128]stride=[2,2,2]dtype=f16
  • unet-encoder-biasinput: [1, 32, 32, 64, 64]weight: [64, 32, 3, 3, 3]bias: [64]stride=[1,1,1]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
r3d-stemf163.96×0.0216flaggems
torch
torch-compile
0.0856
0.1152
0.1152
91.1··
video-downf161.18×0.0175torch-compile
torch
flaggems
0.0206
0.0206
0.2181
70.9··
unet-encoderbf161.07×0.0679torch
torch-compile
flaggems
0.0730
0.0734
0.3172
205··
unet-asppf161.31×0.0279torch-compile
torch
flaggems
0.0366
0.0366
0.3160
73.1··
resnext-groupedf168.13×0.0152torch
torch-compile
flaggems
0.1232
0.1232
0.2597
5··
r3d-stem-biasf163.79×0.0224flaggems
torch-compile
torch
0.0848
0.1363
0.1537
88.7··
video-down-biasf161.22×0.0184torch-compile
torch
flaggems
0.0224
0.0239
0.2165
67.6··
unet-encoder-biasbf161.25×0.0677torch-compile
torch
flaggems
0.0849
0.0980
0.3162
205··