MCPcopy Create free account
hub / github.com/pytorch/executorch / get

Method get

runtime/__init__.py:272–276  ·  view source on GitHub ↗

Gets the Runtime singleton.

()

Source from the content-addressed store, hash-verified

270 @staticmethod
271 @functools.lru_cache(maxsize=1)
272 def get() -> "Runtime":
273 """Gets the Runtime singleton."""
274 import executorch.extension.pybindings.portable_lib as legacy_module # type: ignore[import-not-found]
275
276 return Runtime(legacy_module=legacy_module)
277
278 def __init__(self, *, legacy_module: ModuleType) -> None:
279 # Public attributes.

Callers 15

get_build_typeFunction · 0.45
runMethod · 0.45
parse_prof_blocksFunction · 0.45
_run_and_compareMethod · 0.45
make_md_tableFunction · 0.45
run_executorch_testMethod · 0.45
query_targetsFunction · 0.45
test_smokeMethod · 0.45

Calls 1

RuntimeClass · 0.85