ScriptFunction
- 类torch.jit.ScriptFunction
-
功能上与
ScriptModule
相同,但仅表示一个单独的函数,并且不包含任何属性或参数。- get_debug_state(self:torch._C.ScriptFunction) → torch._C.GraphExecutorState
- save(self: torch._C.ScriptFunction, filename: str, _extra_files: dict[str, str] = {}) → None