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

Function _get_module

kernels/cuda/layernorm.py:313–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311
312
313def _get_module():
314 global _module
315 if _module is None:
316 _module = compile_cuda(CUDA_SRC, "layernorm_cuda")
317 return _module
318
319
320def kernel_fn(x: torch.Tensor, weight: torch.Tensor, bias: torch.Tensor) -> torch.Tensor:

Callers 1

kernel_fnFunction · 0.70

Calls 1

compile_cudaFunction · 0.90

Tested by

no test coverage detected