mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
See #127836 for details. Pull Request resolved: https://github.com/pytorch/pytorch/pull/127838 Approved by: https://github.com/oulgen
12 lines
544 B
Python
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: ...
|