pytorch 是用于代替numpy的计算库,numpy 唯一不同的是pytorch是可以使用gpu进行计算 ... device代表tensor被分配的设备是CPU('cpu')还是GPU('cuda')
確定! 回上一頁