MCPcopy Create free account
hub / github.com/pytorch/pytorch / load

Method load

torch/_inductor/codecache.py:2010–2012  ·  view source on GitHub ↗
(cls, kernel_name: str, source_code: str)

Source from the content-addressed store, hash-verified

2008class TritonCodeCache:
2009 @classmethod
2010 def load(cls, kernel_name: str, source_code: str) -> ModuleType:
2011 mod = PyCodeCache.load(source_code)
2012 return getattr(mod, kernel_name)
2013
2014
2015def _cuda_compiler() -> Optional[str]:

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected