Skip to content
KernelIndex
Search⌘K

submission 66984

rex_cz · python · License unknown

Use it

Vendorable · source mirrored · license unknownView source →

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

ref.py
curl "https://kernelindex.com/api/v1/implementations/kernelbot-grayscale-v2-66984?include=source"
interfacepython
Compatibility
measured onNVIDIA B200
declared hardwareNVIDIA B200
architecturessm_100
dtypesfp32

Benchmark evidence

1 measurement across 1 GPU, fastest first.

Operation / workload
Hardware
Latency
Rank
Observed
RGB to grayscalesuite of 6 cases
NVIDIA B200
5.47ms
#74 of 84
2025-11-05

Reported · How evidence levels are derived →

Source and license

sourceavailable
revision digestsha256:0afc8e23394720a49ca56e6a11e2de8994137b16c7095178d9f56ad4f71c183d
license declaredunknown
license concludedunknown
authorsrex_cz
imported2026-08-15

Kernel source

ref.py12 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

Changes from previous submission

Against this author's previous submission submission 66983.

Best evidence level for this revision: reported

JSON