快捷方式

torch.is_inference_mode_enabled

torch.is_inference_mode_enabled()

如果推理模式當前已啟用,則返回 True。


© PyTorch 貢獻者。版權所有。

使用 Sphinx 構建,主題由 Read the Docs 提供。

文件

查閱 PyTorch 的完整開發者文件

檢視文件

教程

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

檢視教程

資源

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

檢視資源