torch.compile (inductor)
PyTorch · python · MIT
Kernel source · 39 lines ↓holds 2 records
Use it
Vendorable · source mirrored · MITView source →
No package. Vendor the mirrored source: 39 lines, MIT.
61_ConvTranspose3d_ReLU_GroupNorm.py
curl "https://kernelindex.com/api/v1/implementations/kernelbench-l2-61-convtranspose3d-relu-groupnorm-torch-compile-inductor?include=source"interfacepython · torch_compile_inductor
symbolModel.forward
Compatibility
measured onNVIDIA H100
declared hardwaredeclared only
architectures—
dtypes
Benchmark evidence
2 measurements across 1 GPU, fastest first.
Operation / workload
Hardware
Latency
Rank
Observed
Reported · How evidence levels are derived →
Source and license
sourceavailable
revision digestsha256:b100b31da0f1f9ca2c04a74ecec8f35e04056a4f6f4d7a696043420c1a9153b7
license declaredMIT
license concludedMIT
imported2026-08-26
Kernel source
61_ConvTranspose3d_ReLU_GroupNorm.py39 lines
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Model that performs a transposed 3D convolution, applies ReLU, and then applies group normalization.
"""
def __init__(self, in_channels, out_channels, kernel_size, groups, bias=False):
super(Model, self).__init__()
self.conv_transpose = nn.ConvTranspose3d(in_channels, out_channels, kernel_size, bias=bias)
self.relu = nn.ReLU()
self.group_norm = nn.GroupNorm(num_groups=groups, num_channels=out_channels)
def forward(self, x):
"""
Args:
x (torch.Tensor): Input tensor of shape (batch_size, in_channels, D, H, W).
Returns:
torch.Tensor: Output tensor of shape (batch_size, out_channels, D, H, W).
"""
x = self.conv_transpose(x)
x = self.relu(x)
x = self.group_norm(x)
return x
batch_size = 16
in_channels = 64
out_channels = 128
D, H, W = 32, 32, 32
kernel_size = 3
groups = 8
bias = False
def get_inputs():
return [torch.rand(batch_size, in_channels, D, H, W)]
def get_init_inputs():
return [in_channels, out_channels, kernel_size, groups, bias]scrolls · 39 lines total
Source code from KernelBench, © 2023 Anne Ouyang, Simon Guo, Azalia Mirhoseini (Scaling Intelligence Lab, Stanford University), MIT License · MIT
Best evidence level for this revision: reported
JSON