submission 752941
Rishav Sanjay · python · License unknown
Use it
Vendorable · source mirrored · license unknownView source →
No package. Vendor the mirrored source: 20 lines, June 9 Researcher Reciprocity License v1.0.
submission.py
curl "https://kernelindex.com/api/v1/implementations/kernelbot-grayscale-v2-752941?include=source"interfacepython
Compatibility
measured onNVIDIA A100
declared hardwareNVIDIA A100
architecturessm_80
dtypesfp32
Benchmark evidence
1 measurement across 1 GPU, fastest first.
Operation / workload
Hardware
Latency
Rank
Observed
Reported · How evidence levels are derived →
Source and license
sourceavailable
revision digestsha256:eacf385ecb80e9d0d0b601dbd5f2715c512ce458539afd677b0ad81ebe99c49c
license declaredunknown
license concludedunknown
authorsRishav Sanjay
imported2026-08-15
Kernel source
submission.py20 lines
#!POPCORN leaderboard grayscale_v2
#!POPCORN gpu A100
import torch
def custom_kernel(data) -> torch.Tensor:
if isinstance(data, tuple) or isinstance(data, list):
rgb_tensor = data[0]
elif isinstance(data, dict):
rgb_tensor = data.get('input', data.get(
'data', data[list(data.keys())[0]]))
else:
rgb_tensor = data
weights = torch.tensor([0.2989, 0.5870, 0.1140],
device=rgb_tensor.device,
dtype=rgb_tensor.dtype)
return (rgb_tensor * weights).sum(dim=-1)
Source code from GPU Mode and the KernelBot dataset · June 9 Researcher Reciprocity License v1.0
Best evidence level for this revision: reported
JSON