Hi!
Could any of you please help me understand what torch.Tensor.normal_()
is actually doing? Because I’m running some test and I don’t understand why I’m getting two different outputs when I think they should be the same.
import torch
a = torch.rand(2, 2)
print(a)
# tensor([[0.8657, 0.5614],
[0.7639, 0.0196]])
print(a.normal_())
# tensor([[-0.3112, 0.2799],
[-1.8803, 0.0472]])
print(a.normal_(0, 1))
# tensor([[-1.4572, -0.1000],
[-1.6295, 2.0425]])