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

Function _get_module

kernels/cuda/cross_entropy.py:144–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142
143
144def _get_module():
145 global _module
146 if _module is None:
147 _module = compile_cuda(CUDA_SRC, "cross_entropy_cuda")
148 return _module
149
150
151def kernel_fn(logits: torch.Tensor, targets: torch.Tensor) -> torch.Tensor:

Callers 1

kernel_fnFunction · 0.70

Calls 1

compile_cudaFunction · 0.90

Tested by

no test coverage detected