快捷方式

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: dict[str, str] = {}) None
save_to_buffer(self: torch._C.ScriptFunction, _extra_files: dict[str, str] = {}) bytes

文件

查閱 PyTorch 全面的開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源