快速入门 tensor 创建 x=torch.Tensor(5,3)#这里的参数是shape #这里的Tensor默认是FloatTensor,可以通过一个东西修改,我忘了 x=torch.rand(5,3)#[0,1]均匀分布,参数是shape