Skip to content
KernelIndex
Search⌘K

submission 663934

loc-equinox · python · License unknown

Use it

Vendorable · source mirrored · license unknownView source →

No package. Vendor the mirrored source: 11 lines, June 9 Researcher Reciprocity License v1.0.

submission.py
curl "https://kernelindex.com/api/v1/implementations/kernelbot-grayscale-v2-663934?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
RGB to grayscalesuite of 6 cases
NVIDIA A100
10.4ms
#56 of 137
2026-03-29

Reported · How evidence levels are derived →

Source and license

sourceavailable
revision digestsha256:c2e11b00e6cc0bfba1c07a7baa579d7518a15d8f0701ee9e1ed6f1e7677aa2f9
license declaredunknown
license concludedunknown
authorsloc-equinox
imported2026-08-15

Kernel source

submission.py11 lines
from task import input_t, output_t
import torch

def custom_kernel(data: input_t) -> output_t:
    data, output = data
    weights = torch.tensor([0.2989, 0.5870, 0.1140], 
                         device=data.device, 
                         dtype=data.dtype)
    output[...] = torch.sum(data * weights, dim=-1)
    return output

Source code from GPU Mode and the KernelBot dataset · June 9 Researcher Reciprocity License v1.0

Best evidence level for this revision: reported

JSON