Pytorch学习笔记 | 数据类型 | mnist数据集

数据类型

python中数据类型和pytorch中的对应关系
在这里插入图片描述
注意:pytorch是没有没有string类型的

例1:创建一个3行4列的随机数数组,符合均值为0,方差为1的正态分布

import torch
a=torch.Tensor(3,4)
a
Out[17]

猜你喜欢

转载自blog.csdn.net/PoGeN1/article/details/131939668