64位Win10安装Pytorch
生活随笔
收集整理的這篇文章主要介紹了
64位Win10安装Pytorch
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
參考:https://zhuanlan.zhihu.com/p/26871672
加清華源,然后使用conda進行安裝。
Pytorch示例:
9:39:49 浪墨 2018/9/6 9:39:49 # -*- coding: utf-8 -*- ''' Created on 2018年9月6日@author: user ''' import torch import numpy as npif __name__ == "__main__": # 創(chuàng)建一個np arraya = np.array([[1,2], [3,4]])b = torch.from_numpy(a) # 根據np array創(chuàng)建torch 張量c = b.numpy() # 根據張量, 導出np arrayprint (c)?
總結
以上是生活随笔為你收集整理的64位Win10安装Pytorch的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Kernel Method的理解
- 下一篇: 【IM】从贝叶斯角度理解生成式和判别式及