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

Function _get_module

kernels/cuda/rmsnorm.py:164–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162
163
164def _get_module():
165 global _module
166 if _module is None:
167 _module = compile_cuda(CUDA_SRC, "rmsnorm_cuda")
168 return _module
169
170
171def kernel_fn(x: torch.Tensor, weight: torch.Tensor) -> torch.Tensor:

Callers 1

kernel_fnFunction · 0.70

Calls 1

compile_cudaFunction · 0.90

Tested by

no test coverage detected