Files
pytorch/torch/_C_flatbuffer/__init__.pyi
2024-06-08 18:16:33 +00:00

12 lines
544 B
Python

# mypy: allow-untyped-defs
from torch._C import LiteScriptModule, ScriptModule
def _load_mobile_module_from_file(filename: str): ...
def _load_mobile_module_from_bytes(bytes_: bytes): ...
def _load_jit_module_from_file(filename: str): ...
def _load_jit_module_from_bytes(bytes_: bytes): ...
def _save_mobile_module(m: LiteScriptModule, filename: str): ...
def _save_jit_module(m: ScriptModule, filename: str): ...
def _save_mobile_module_to_bytes(m: LiteScriptModule) -> bytes: ...
def _save_jit_module_to_bytes(m: ScriptModule) -> bytes: ...