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-input: [4, 128, 4096]kernel_size=3stride=2padding=1dtype=f16, f32downsample long-input: [2, 256, 32000]kernel_size=5stride=4padding=2dtype=f16temporal 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- | f16 | 1.20× | 0.0031 | torch-compiletorch-ref | 0.00371 0.0152 | 1.35 | · | · |
| f32 | 1.02× | 0.00438 | torch-compiletorch-ref | 0.00448 0.0152 | 0.957 | · | · | |
long- | f16 | 1.53× | 0.0107 | torch-compiletorch-ref | 0.0164 0.0591 | 2.29 | · | · |
ceil | bf16 | 1.12× | 0.00189 | torch-compiletorch-ref | 0.00211 0.00522 | 0.694 | · | · |
AvgPool2dFwd¶
input: [N, C, H_in, W_in]
stride=[2,2]
vision-input: [2, 64, 112, 112]kernel_size=[3,3]padding=[1,1]dtype=f16, f323x3- s2 vision-input: [2, 128, 56, 56]kernel_size=[5,5]padding=[2,2]dtype=f165x5- s2 ceil-input: [3, 96, 55, 57]kernel_size=[3,5]padding=[1,2]ceil_mode=truecount_include_pad=falsedivisor_override=7dtype=bf16divisor
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
vision- | f16 | 1.29× | 0.00285 | torch-compileflaggemstorch-ref | 0.00368 0.00675 0.00886 | 1.39 | · | · |
| f32 | 1.35× | 0.00352 | torch-compileflaggemstorch-ref | 0.00477 0.00672 0.00899 | 1.13 | · | · | |
vision- | f16 | 1.99× | 0.00368 | flaggemstorch-reftorch-compile | 0.00733 0.00973 0.0164 | 1.36 | · | · |
ceil- | bf16 | 1.27× | 0.00298 | torch-compileflaggemstorch-ref | 0.00378 0.00627 0.00742 | 1.2 | · | · |
AvgPool3dFwd¶
input: [N, C, D_in, H_in, W_in]
stride=[2,2,2]
video-input: [1, 32, 16, 56, 56]kernel_size=[2,2,2]padding=[0,0,0]dtype=f16, f322x2x2 ceil-input: [2, 64, 8, 28, 28]kernel_size=[2,3,3]padding=[1,1,1]ceil_mode=truecount_include_pad=falsedtype=f16video 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- | f16 | 1.15× | 0.00234 | torch-compilecudnntorch-ref | 0.00269 0.00512 0.00947 | 0.773 | · | · |
| f32 | 1.16× | 0.00317 | torch-compilecudnntorch-ref | 0.00368 0.00557 0.00979 | 0.57 | · | · | |
ceil- | f16 | 1.22× | 0.0031 | torch-compilecudnntorch-ref | 0.00378 0.00547 0.0113 | 0.628 | · | · |
divisor | bf16 | 1.04× | 0.0017 | torch-compiletorch-ref | 0.00176 0.00496 | 0.198 | · | · |
MaxPool1dFwd¶
input: [N, C, L_in]
sincnet-input: [32, 80, 4096]kernel_size=3stride=3dtype=f16, f32local textcnn-input: [64, 256, 128]kernel_size=128stride=1dtype=f16global ecg-input: [16, 128, 2048]kernel_size=5stride=2padding=2dilation=2ceil_mode=truedtype=bf16cnn- dilated
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
sincnet- | f16 | 1.03× | 0.00886 | torch-compiletorch-ref | 0.00909 0.0506 | 1.18 | · | · |
| f32 | 1.01× | 0.0133 | torch-compiletorch-ref | 0.0134 0.0500 | 0.789 | · | · | |
textcnn- | f16 | 1.02× | 0.00285 | torch-compiletorch-ref | 0.00291 0.0258 | 0.736 | · | · |
ecg- | bf16 | 1.30× | 0.00544 | torch-compiletorch-ref | 0.00707 0.0353 | 1.92 | · | · |
MaxPool1dIndicesFwd¶
input: [N, C, L_in]
sincnet-input: [32, 80, 4096]kernel_size=3stride=3dtype=f16, f32local textcnn-input: [64, 256, 128]kernel_size=128stride=1dtype=f16global ecg-input: [16, 128, 2048]kernel_size=5stride=2padding=2dilation=2ceil_mode=truedtype=bf16cnn- dilated
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
sincnet- | f16 | 1.01× | 0.0139 | torch-compiletorch-ref | 0.0140 0.0507 | 0.755 | · | · |
| f32 | 1.00× | 0.0194 | torch-compiletorch-ref | 0.0195 0.0500 | 0.541 | · | · | |
textcnn- | f16 | 1.83× | 0.00397 | torch-compiletorch-ref | 0.00726 0.0258 | 0.529 | · | · |
ecg- | bf16 | 1.25× | 0.00966 | torch-compiletorch-ref | 0.0121 0.0353 | 1.08 | · | · |
MaxPool2dFwd¶
input: [N, C, H_in, W_in]
stride=[2,2]dtype=bf16, f32
resnet-input: [32, 64, 112, 112]kernel_size=[3,3]padding=[1,1]stem vgg-input: [16, 128, 56, 56]kernel_size=[2,2]padding=[0,0]block alexnet-input: [32, 64, 55, 55]kernel_size=[3,3]padding=[0,0]ceil_mode=trueceil
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
resnet- | bf16 | 1.53× | 0.0217 | torch-compileflaggemstorch-ref | 0.0332 0.0780 0.1392 | 2.63 | · | · |
| f32 | 1.67× | 0.0292 | torch-compileflaggemstorch-ref | 0.0487 0.0785 0.1345 | 1.95 | · | · | |
vgg- | bf16 | 1.13× | 0.00515 | torch-compileflaggemstorch-ref | 0.00582 0.0141 0.0275 | 1.25 | · | · |
| f32 | 1.03× | 0.00851 | torch-compileflaggemstorch-ref | 0.00874 0.0136 0.0273 | 0.755 | · | · | |
alexnet- | bf16 | 1.71× | 0.0063 | torch-compileflaggemstorch-ref | 0.0108 0.0219 0.0346 | 2.13 | · | · |
| f32 | 1.71× | 0.00893 | torch-compileflaggemstorch-ref | 0.0152 0.0213 0.0338 | 1.51 | · | · | |
MaxPool2dIndicesFwd¶
input: [N, C, H_in, W_in]
stride=[2,2]dtype=bf16, f32
resnet-input: [32, 64, 112, 112]kernel_size=[3,3]padding=[1,1]stem vgg-input: [16, 128, 56, 56]kernel_size=[2,2]padding=[0,0]block alexnet-input: [32, 64, 55, 55]kernel_size=[3,3]padding=[0,0]ceil_mode=trueceil
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
resnet- | bf16 | 2.27× | 0.0289 | torch-compileflaggemstorch-ref | 0.0656 0.0781 0.1392 | 1.97 | · | · |
| f32 | 1.63× | 0.0403 | torch-compileflaggemstorch-ref | 0.0658 0.0784 0.1346 | 1.42 | · | · | |
vgg- | bf16 | 1.07× | 0.008 | torch-compileflaggemstorch-ref | 0.00858 0.0140 0.0275 | 0.803 | · | · |
| f32 | 1.02× | 0.0111 | torch-compileflaggemstorch-ref | 0.0113 0.0136 0.0273 | 0.58 | · | · | |
alexnet- | bf16 | 2.20× | 0.00832 | torch-compileflaggemstorch-ref | 0.0183 0.0220 0.0346 | 1.62 | · | · |
| f32 | 1.57× | 0.0109 | torch-compileflaggemstorch-ref | 0.0171 0.0212 0.0338 | 1.24 | · | · | |
MaxPool3dFwd¶
input: [N, C, D_in, H_in, W_in]
c3d-input: [8, 64, 16, 112, 112]kernel_size=[1,2,2]stride=[1,2,2]padding=[0,0,0]dtype=f16, f32pool1 c3d-input: [4, 128, 16, 56, 56]kernel_size=[2,2,2]stride=[2,2,2]padding=[0,0,0]dtype=f16pool2 medicalnet-input: [2, 64, 32, 112, 112]kernel_size=[3,3,3]stride=[2,2,2]padding=[1,1,1]ceil_mode=truedtype=bf16stem
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
c3d- | f16 | 1.06× | 0.0670 | torch-compilecudnntorch-ref | 0.0709 0.2988 0.5181 | 1.53 | · | · |
| f32 | 1.00× | 0.1149 | torch-compilecudnntorch-ref | 0.1149 0.3397 0.5248 | 0.894 | · | · | |
c3d- | f16 | 1.15× | 0.0157 | torch-compilecudnntorch-ref | 0.0180 0.0566 0.0910 | 1.64 | · | · |
medicalnet- | bf16 | 2.73× | 0.0947 | cudnntorch-reftorch-compile | 0.2583 0.3342 0.6667 | 1.83 | · | · |
MaxPool3dIndicesFwd¶
input: [N, C, D_in, H_in, W_in]
c3d-input: [8, 64, 16, 112, 112]kernel_size=[1,2,2]stride=[1,2,2]padding=[0,0,0]dtype=f16, f32pool1 c3d-input: [4, 128, 16, 56, 56]kernel_size=[2,2,2]stride=[2,2,2]padding=[0,0,0]dtype=f16pool2 medicalnet-input: [2, 64, 32, 112, 112]kernel_size=[3,3,3]stride=[2,2,2]padding=[1,1,1]ceil_mode=truedtype=bf16stem
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
c3d- | f16 | 1.06× | 0.1177 | torch-compiletorch-ref | 0.1244 0.5179 | 0.873 | · | · |
| f32 | 1.00× | 0.1632 | torch-compiletorch-ref | 0.1633 0.5249 | 0.63 | · | · | |
c3d- | f16 | 1.34× | 0.0213 | torch-compiletorch-ref | 0.0286 0.0910 | 1.21 | · | · |
medicalnet- | bf16 | 13.77× | 0.1285 | torch-reftorch-compile | 0.3349 1.7692 | 1.35 | · | · |
AdaptiveAvgPool2dFwd¶
input: [*B, C, H_in, W_in]
resnet-input: [8, 2048, 7, 7]output_size=[1,1]dtype=f16gap spp-input: [2, 128, 56, 56]output_size=[6,6]dtype=f166x6 nondiv-input: [2, 64, 55, 57]output_size=[7,7]dtype=bf167x7 resnet-input: [2048, 7, 7]output_size=[1,1]dtype=f16gap- unbatched
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
resnet- | f16 | 1.68× | 0.00218 | torch-compiletorch-ref | 0.00365 0.00726 | 0.369 | · | · |
spp- | f16 | 3.74× | 0.00272 | torch-reftorch-compile | 0.0102 0.0102 | 0.339 | · | · |
nondiv- | bf16 | 3.79× | 0.0023 | torch-reftorch-compile | 0.00874 0.00874 | 0.213 | · | · |
resnet- | f16 | 1.58× | 0.0017 | torch-compiletorch-ref | 0.00269 0.0031 | 0.0592 | · | · |
AdaptiveMaxPool2dFwd¶
input: [*B, C, H_in, W_in]
global-input: [8, 2048, 7, 7]output_size=[1,1]dtype=f161x1 spp-input: [2, 128, 56, 56]output_size=[6,6]dtype=f166x6 nondiv-input: [2, 64, 55, 57]output_size=[7,7]dtype=bf167x7 global-input: [2048, 7, 7]output_size=[1,1]dtype=f161x1- unbatched
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
global- | f16 | 1.52× | 0.00227 | torch-compiletorch-ref | 0.00346 0.0470 | 0.353 | · | · |
spp- | f16 | 4.43× | 0.00307 | torch-compiletorch-ref | 0.0136 0.0136 | 0.3 | · | · |
nondiv- | bf16 | 3.49× | 0.00314 | torch-reftorch-compile | 0.0109 0.0109 | 0.157 | · | · |
global- | f16 | 1.50× | 0.00179 | torch-compiletorch-ref | 0.00269 0.0126 | 0.056 | · | · |
AdaptiveMaxPool2dIndicesFwd¶
input: [*B, C, H_in, W_in]
global-input: [8, 2048, 7, 7]output_size=[1,1]dtype=f161x1 spp-input: [2, 128, 56, 56]output_size=[6,6]dtype=f166x6 nondiv-input: [2, 64, 55, 57]output_size=[7,7]dtype=bf167x7 global-input: [2048, 7, 7]output_size=[1,1]dtype=f161x1- unbatched
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
global- | f16 | 3.89× | 0.00243 | torch-compiletorch-ref | 0.00947 0.0469 | 0.33 | · | · |
spp- | f16 | 4.21× | 0.00323 | torch-reftorch-compile | 0.0136 0.0136 | 0.285 | · | · |
nondiv- | bf16 | 3.38× | 0.00323 | torch-compiletorch-ref | 0.0109 0.0109 | 0.152 | · | · |
global- | f16 | 3.65× | 0.00201 | torch-compiletorch-ref | 0.00736 0.0126 | 0.0498 | · | · |
MeanPoolingFwd¶
x: [B, S, H, D]
chunk_size=64
uniform-x: [1, 8192, 64, 128]dtype=bf16/f328k uniform-x: [2, 2048, 64, 128]dtype=f16/f32batched
x: [B, S, H, D]cu_seqlens: [NS + 1], i32chunk_indices: [NC, 2], i32
ragged-x: [1, 8192, 64, 128]cu_seqlens: [5], i32chunk_indices: [128, 2], i32seq_lens=repeat(2048, 4)chunk_size=64dtype=f16/f32, f32/f32even ragged-x: [1, 1000, 64, 128]cu_seqlens: [5], i32chunk_indices: [34, 2], i32seq_lens=[100,200,300,400]chunk_size=32dtype=f16/f32tail ragged-x: [2, 2048, 64, 128]cu_seqlens: [3], i32chunk_indices: [32, 2], i32seq_lens=repeat(1024, 2)chunk_size=64dtype=f16/f32batched
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
uniform- | bf16/f32 | 1.46× | 0.0302 | torch-view-meantorch-compiletorch-ref | 0.0442 0.3391 0.6224 | 2.26 | · | · |
uniform- | f16/f32 | 1.52× | 0.0162 | torch-view-meantorch-compiletorch-ref | 0.0246 0.1295 0.1694 | 2.1 | · | · |
ragged- | f16/f32 | 9.60× | 0.0316 | torch-segment-reducetorch-compiletorch-ref | 0.3034 0.3388 0.6144 | 2.16 | · | · |
| f32/f32 | 1.19× | 0.0612 | torch-segment-reducetorch-compiletorch-ref | 0.0729 0.3250 0.6414 | 1.11 | · | · | |
ragged- | f16/f32 | 5.58× | 0.00771 | torch-segment-reducetorch-compiletorch-ref | 0.0431 0.1065 0.2163 | 1.1 | · | · |
ragged- | f16/f32 | 7.33× | 0.0177 | torch-compiletorch-reftorch-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-input: [1, 80, 3000]weight: [1280, 80, 3]conv1 wav2vec2-input: [1, 1, 16000]weight: [512, 1, 10]stride=5layer1 encodec-input: [1, 1, 24000]weight: [32, 1, 7]init encodec-input: [1, 128, 600]weight: [256, 128, 10]deep
input: [N, C_in, L_in]weight: [C_out, C_in_g, kW]bias: [C_out]
dtype=bf16
whisper-input: [1, 80, 3000]weight: [1280, 80, 3]bias: [1280]conv1- bias wav2vec2-input: [1, 1, 16000]weight: [512, 1, 10]bias: [512]stride=5layer1- bias encodec-input: [1, 1, 24000]weight: [32, 1, 7]bias: [32]init- bias encodec-input: [1, 128, 600]weight: [256, 128, 10]bias: [256]deep- bias
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
whisper- | bf16 | 1.45× | 0.0222 | torchtorch-compileflaggems | 0.0322 0.0322 0.1031 | 82.8 | · | · |
wav2vec2- | bf16 | 1.91× | 0.00626 | torchtorch-compileflaggems | 0.0119 0.0120 0.0408 | 5.24 | · | · |
encodec- | bf16 | 3.49× | 0.0023 | torchtorch-compileflaggems | 0.00803 0.00806 0.0242 | 4.67 | · | · |
encodec- | bf16 | 1.71× | 0.00957 | torch-compiletorchflaggems | 0.0164 0.0164 0.0750 | 40.5 | · | · |
whisper- | bf16 | 1.72× | 0.0228 | torch-compiletorchflaggems | 0.0392 0.0449 0.1026 | 81 | · | · |
wav2vec2- | bf16 | 2.37× | 0.00659 | torch-compiletorchflaggems | 0.0156 0.0186 0.0397 | 5.22 | · | · |
encodec- | bf16 | 4.37× | 0.0024 | torch-compiletorchflaggems | 0.0105 0.0122 0.0233 | 4.8 | · | · |
encodec- | bf16 | 1.80× | 0.0100 | torch-compiletorchflaggems | 0.0180 0.0195 0.0742 | 38.7 | · | · |
Conv2dFwd¶
input: [N, C_in, H, W]weight: [C_out, C_in_g, kH, kW]
resnet-input: [2, 64, 56, 56]weight: [64, 64, 3, 3]stride=[1,1]padding=[1,1]dtype=bf163x3 steminput: [1, 3, 112, 112]weight: [64, 3, 3, 3]stride=[2,2]padding=[1,1]dtype=f16stage-input: [1, 128, 56, 56]weight: [256, 128, 3, 3]stride=[2,2]padding=[1,1]dtype=f16down- 3x3 highresinput: [1, 256, 112, 112]weight: [512, 256, 3, 3]stride=[1,1]padding=[1,1]dtype=f16midresinput: [1, 64, 56, 56]weight: [128, 64, 5, 5]stride=[1,1]padding=[2,2]dtype=f16stage-input: [1, 128, 56, 56]weight: [256, 128, 5, 5]stride=[2,2]padding=[2,2]dtype=f16down- 5x5 stride2input: [1, 128, 28, 28]weight: [128, 128, 3, 3]stride=[2,2]padding=[1,1]dtype=bf16resnet-input: [2, 64, 56, 56]weight: [256, 64, 1, 1]stride=[1,1]padding=[0,0]dtype=bf161x1 bottleneck-input: [2, 128, 28, 28]weight: [512, 128, 1, 1]stride=[1,1]padding=[0,0]dtype=f16expand bottleneck-input: [2, 512, 28, 28]weight: [128, 512, 1, 1]stride=[1,1]padding=[0,0]dtype=f16reduce late-input: [1, 256, 14, 14]weight: [1024, 256, 1, 1]stride=[1,1]padding=[0,0]dtype=f16stage- 1x1 classifier-input: [1, 512, 7, 7]weight: [2048, 512, 1, 1]stride=[1,1]padding=[0,0]dtype=f161x1 deeplabv3-input: [1, 2048, 32, 32]weight: [256, 2048, 3, 3]stride=[1,1]padding=[12,12]dilation=[12,12]dtype=f16aspp mbv2-input: [1, 32, 56, 56]weight: [32, 1, 3, 3]stride=[1,1]padding=[1,1]groups=32dtype=f16depthwise resnext-input: [1, 128, 28, 28]weight: [256, 4, 3, 3]stride=[1,1]padding=[1,1]groups=32dtype=f16grouped- 3x3
input: [N, C_in, H, W]weight: [C_out, C_in_g, kH, kW]bias: [C_out]
resnet-input: [2, 64, 56, 56]weight: [64, 64, 3, 3]bias: [64]stride=[1,1]padding=[1,1]dtype=bf163x3- bias stem-input: [1, 3, 112, 112]weight: [64, 3, 3, 3]bias: [64]stride=[2,2]padding=[1,1]dtype=f16bias stage-input: [1, 128, 56, 56]weight: [256, 128, 3, 3]bias: [256]stride=[2,2]padding=[1,1]dtype=f16down- 3x3- bias highres-input: [1, 256, 112, 112]weight: [512, 256, 3, 3]bias: [512]stride=[1,1]padding=[1,1]dtype=f16bias midres-input: [1, 64, 56, 56]weight: [128, 64, 5, 5]bias: [128]stride=[1,1]padding=[2,2]dtype=f16bias stage-input: [1, 128, 56, 56]weight: [256, 128, 5, 5]bias: [256]stride=[2,2]padding=[2,2]dtype=f16down- 5x5- bias stride2-input: [1, 128, 28, 28]weight: [128, 128, 3, 3]bias: [128]stride=[2,2]padding=[1,1]dtype=bf16bias resnet-input: [2, 64, 56, 56]weight: [256, 64, 1, 1]bias: [256]stride=[1,1]padding=[0,0]dtype=bf161x1- bias bottleneck-input: [2, 128, 28, 28]weight: [512, 128, 1, 1]bias: [512]stride=[1,1]padding=[0,0]dtype=f16expand- bias bottleneck-input: [2, 512, 28, 28]weight: [128, 512, 1, 1]bias: [128]stride=[1,1]padding=[0,0]dtype=f16reduce- bias late-input: [1, 256, 14, 14]weight: [1024, 256, 1, 1]bias: [1024]stride=[1,1]padding=[0,0]dtype=f16stage- 1x1- bias classifier-input: [1, 512, 7, 7]weight: [2048, 512, 1, 1]bias: [2048]stride=[1,1]padding=[0,0]dtype=f161x1- bias
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
resnet- | bf16 | 1.59× | 0.00717 | torch-compiletorchflaggems | 0.0114 0.0144 0.0827 | 63 | · | · |
stem | f16 | 2.14× | 0.00304 | torchtorch-compileflaggems | 0.0065 0.0095 0.0126 | 3.52 | · | · |
stage- | f16 | 1.35× | 0.00954 | torch-compiletorchflaggems | 0.0128 0.0163 0.1189 | 47.3 | · | · |
highres | f16 | 1.54× | 0.0649 | torchtorch-compileflaggems | 0.0997 0.1020 0.7345 | 451 | · | · |
midres | f16 | 1.64× | 0.0104 | torch-compiletorchflaggems | 0.0171 0.0200 0.2069 | 118 | · | · |
stage- | f16 | 1.41× | 0.0122 | torch-compiletorchflaggems | 0.0172 0.0203 0.3103 | 101 | · | · |
stride2 | bf16 | 1.91× | 0.0064 | torch-compiletorchflaggems | 0.0122 0.0143 0.0636 | 8.61 | · | · |
resnet- | bf16 | 0.99× | 0.00384 | torchtorch-compileflaggems | 0.00381 0.00806 0.0463 | 53.5 | · | · |
bottleneck- | f16 | 1.20× | 0.0033 | torchtorch-compileflaggems | 0.00397 0.0073 0.0287 | 62.4 | · | · |
bottleneck- | f16 | 0.98× | 0.00422 | torchtorch-compileflaggems | 0.00413 0.00768 0.0263 | 48.6 | · | · |
late- | f16 | 1.57× | 0.00397 | torchtorch-compileflaggems | 0.00624 0.00653 0.0154 | 25.9 | · | · |
classifier- | f16 | 1.02× | 0.00672 | torch-compiletorchflaggems | 0.00688 0.0088 0.0205 | 15.3 | · | · |
deeplabv3- | f16 | 2.09× | 0.0386 | torch-compiletorchflaggems | 0.0806 0.1099 0.7148 | 141 | · | · |
mbv2- | f16 | 1.49× | 0.00202 | torchtorch-compileflaggems | 0.00301 0.00554 0.0542 | 0.875 | · | · |
resnext- | f16 | 4.92× | 0.00384 | torch-compiletorchflaggems | 0.0189 0.0189 0.0192 | 3.59 | · | · |
resnet- | bf16 | 1.63× | 0.00739 | torch-compiletorchflaggems | 0.0120 0.0180 0.0823 | 61.1 | · | · |
stem- | f16 | 2.68× | 0.00352 | torchtorch-compileflaggems | 0.00944 0.00982 0.0116 | 3.1 | · | · |
stage- | f16 | 1.44× | 0.0096 | torch-compiletorchflaggems | 0.0138 0.0193 0.1177 | 47 | · | · |
highres- | f16 | 1.27× | 0.0672 | torch-compiletorchflaggems | 0.0853 0.1190 0.7350 | 436 | · | · |
midres- | f16 | 1.61× | 0.0109 | torch-compiletorchflaggems | 0.0175 0.0234 0.2058 | 113 | · | · |
stage- | f16 | 1.50× | 0.0121 | torch-compiletorchflaggems | 0.0181 0.0231 0.3097 | 102 | · | · |
stride2- | bf16 | 1.83× | 0.00698 | torch-compiletorchflaggems | 0.0127 0.0170 0.0627 | 7.9 | · | · |
resnet- | bf16 | 2.11× | 0.0041 | torch-compiletorchflaggems | 0.00864 0.0113 0.0454 | 50.6 | · | · |
bottleneck- | f16 | 2.21× | 0.00352 | torch-compiletorchflaggems | 0.00777 0.00877 0.0277 | 58.6 | · | · |
bottleneck- | f16 | 1.85× | 0.00387 | torchtorch-compileflaggems | 0.00717 0.00797 0.0254 | 53.1 | · | · |
late- | f16 | 1.60× | 0.00429 | torch-compiletorchflaggems | 0.00688 0.00922 0.0149 | 24 | · | · |
classifier- | f16 | 1.25× | 0.00712 | torch-compiletorchflaggems | 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-input: [1, 3, 16, 112, 112]weight: [64, 3, 3, 3, 3]stride=[1,1,1]padding=[1,1,1]dtype=f16stem video-input: [1, 64, 8, 56, 56]weight: [128, 64, 3, 3, 3]stride=[2,2,2]padding=[1,1,1]dtype=f16down unet-input: [1, 32, 32, 64, 64]weight: [64, 32, 3, 3, 3]stride=[1,1,1]padding=[1,1,1]dtype=bf16encoder unet-input: [1, 256, 8, 16, 16]weight: [256, 256, 3, 3, 3]stride=[1,1,1]padding=[6,6,6]dilation=[6,6,6]dtype=f16aspp resnext-input: [1, 64, 8, 28, 28]weight: [128, 2, 3, 3, 3]stride=[1,1,1]padding=[1,1,1]groups=32dtype=f16grouped
input: [N, C_in, D, H, W]weight: [C_out, C_in_g, kD, kH, kW]bias: [C_out]
padding=[1,1,1]
r3d-input: [1, 3, 16, 112, 112]weight: [64, 3, 3, 3, 3]bias: [64]stride=[1,1,1]dtype=f16stem- bias video-input: [1, 64, 8, 56, 56]weight: [128, 64, 3, 3, 3]bias: [128]stride=[2,2,2]dtype=f16down- bias unet-input: [1, 32, 32, 64, 64]weight: [64, 32, 3, 3, 3]bias: [64]stride=[1,1,1]dtype=bf16encoder- bias
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
r3d- | f16 | 3.96× | 0.0216 | flaggemstorchtorch-compile | 0.0856 0.1152 0.1152 | 91.1 | · | · |
video- | f16 | 1.18× | 0.0175 | torch-compiletorchflaggems | 0.0206 0.0206 0.2181 | 70.9 | · | · |
unet- | bf16 | 1.07× | 0.0679 | torchtorch-compileflaggems | 0.0730 0.0734 0.3172 | 205 | · | · |
unet- | f16 | 1.31× | 0.0279 | torch-compiletorchflaggems | 0.0366 0.0366 0.3160 | 73.1 | · | · |
resnext- | f16 | 8.13× | 0.0152 | torchtorch-compileflaggems | 0.1232 0.1232 0.2597 | 5 | · | · |
r3d- | f16 | 3.79× | 0.0224 | flaggemstorch-compiletorch | 0.0848 0.1363 0.1537 | 88.7 | · | · |
video- | f16 | 1.22× | 0.0184 | torch-compiletorchflaggems | 0.0224 0.0239 0.2165 | 67.6 | · | · |
unet- | bf16 | 1.25× | 0.0677 | torch-compiletorchflaggems | 0.0849 0.0980 0.3162 | 205 | · | · |