出售本站【域名】【外链】

微技术-AI分享
更多分类

《动手学深度学习》中d2l库的安装教程(含细节,开盖即食)

2025-02-01

2.1.1. torch.ZZZiew()和torch.reshape()的区别 代码是用jupyter notebook写的 import torch from ctypes import string_at a = torch.arange(6).reshape(2,3) a '''输出 tensor([[0, 1, 2], [3, 4, 5]]) ''' a = a.T a '''输出 tensor([[0, 3], [1, 4], [2, 5]]) '