捷徑

ScriptFunction

class torch.jit.ScriptFunction

在功能上等同於 ScriptModule,但表示單一函式,且不具備任何屬性或參數(Parameters)。

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

文件

取得 PyTorch 的完整開發者文件

檢視文件

教學課程

取得適合初學者和進階開發人員的深入教學課程

檢視教學課程

資源

尋找開發資源並取得問題解答

檢視資源