Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RightNow-AI/autokernel
/ _get_module
Function
_get_module
kernels/cuda/softmax.py:238–242 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
236
237
238
def
_get_module():
239
global _module
240
if
_module is None:
241
_module = compile_cuda(CUDA_SRC,
"softmax_cuda"
)
242
return
_module
243
244
245
def
kernel_fn(x: torch.Tensor) -> torch.Tensor:
Callers
1
kernel_fn
Function · 0.70
Calls
1
compile_cuda
Function · 0.90
Tested by
no test coverage detected