Gets the Runtime singleton.
()
| 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. |