評價此頁

ScriptFunction#

class torch.jit.ScriptFunction#

功能上等同於 ScriptModule,但代表一個單獨的函式,不包含任何屬性或引數。

get_debug_state(self: torch._C.ScriptFunction) torch._C.GraphExecutorState#
save(self: torch._C.ScriptFunction, filename: str, _extra_files: collections.abc.Mapping[str, str] = {}) None#
save_to_buffer(self: torch._C.ScriptFunction, _extra_files: collections.abc.Mapping[str, str] = {}) bytes#