pytorch学习知识点总结
生活随笔
收集整理的這篇文章主要介紹了
pytorch学习知识点总结
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
查看torch版本、是否安裝cuda、查看cuda版本
import torch print(torch.__version__) print(torch.cuda.is_available()) print(torch.version.cuda)1 torch.save(): 保存一個序列化(serialized)的目標到磁盤。
2 torch.load(): 用來加載模型。
3 torch.nn.Module.load_state_dict(state_dict) 用來加載模型參數。
總結
以上是生活随笔為你收集整理的pytorch学习知识点总结的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python知识点总结(有空就往里面添加
- 下一篇: python——LeetCode刷题