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

Method load

torch/_inductor/codecache.py:1859–1867  ·  view source on GitHub ↗
(
        cls,
        source_code: str,
        extra: str = "",
        linemap: Optional[List[Tuple[int, str]]] = None,
        attrs: Optional[Dict[str, Any]] = None,
    )

Source from the content-addressed store, hash-verified

1857
1858 @classmethod
1859 def load(
1860 cls,
1861 source_code: str,
1862 extra: str = "",
1863 linemap: Optional[List[Tuple[int, str]]] = None,
1864 attrs: Optional[Dict[str, Any]] = None,
1865 ) -> ModuleType:
1866 key, path = write(source_code, "py", extra=extra)
1867 return cls.load_by_key_path(key, path, linemap, attrs)
1868
1869 @classmethod
1870 def load_by_key_path(

Callers 15

generateMethod · 0.45
make_run_fnMethod · 0.45
bucketize_binary_searchFunction · 0.45
compile_fx_innerFunction · 0.45
get_local_cacheMethod · 0.45
get_global_cacheMethod · 0.45
_lookup_graphMethod · 0.45
loadMethod · 0.45
_worker_compileFunction · 0.45
_load_kernelFunction · 0.45

Calls 2

load_by_key_pathMethod · 0.80
writeFunction · 0.70

Tested by

no test coverage detected