m=torch.normal(mean=torch.full([10],0),std=torch.arange(1,0,-0.1))
使用normal报错,mean参数0后应添加.
m=torch.normal(mean=torch.full([10],0.),std=torch.arange(1,0,-0.1))
print(m)
tensor([-0.0408, -0.8938, -0.0634, -0.5792, 0.1088, -0.2955, 0.0117, -0.0426,
0.0817, 0.0317])