他们俩个输出的结果是一样的。
tensor([[-0.6260],
[ 0.3451],
[ 0.9653],
[-1.5156]])
tensor([[-0.3110],
[ 0.2371],
[ 0.2829],
[ 0.2155]])
torch.randn(1,2)和torch.randn((1,2))一样吗?
原文:https://www.cnblogs.com/hahaah/p/14932859.html