快捷键

脚本函数 ¶

类 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 贡献者。

使用 Sphinx 构建,并使用 Read the Docs 提供的主题。

文档

PyTorch 的全面开发者文档

查看文档

教程

深入了解初学者和高级开发者的教程

查看教程

资源

查找开发资源并获得您的疑问解答

查看资源