MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / _get_module

Function _get_module

kernels/cuda/reduce.py:104–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103
104def _get_module():
105 global _module
106 if _module is None:
107 _module = compile_cuda(CUDA_SRC, "reduce_sum_cuda")
108 return _module
109
110
111def kernel_fn(x: torch.Tensor, dim: int = -1) -> torch.Tensor:

Callers 1

kernel_fnFunction · 0.70

Calls 1

compile_cudaFunction · 0.90

Tested by

no test coverage detected