I have a tensor I created using
temp = torch.zeros(5, 10, 20, dtype=torch.float64)
## some values I set in temp
Now I want to add to each temp[i,j,k] a Gaussian noise (sampled from normal distribution with mean 0 and variance 0.1). How do I do it? I would expect there is a function to noise a tensor, but couldn't find anything. I did find this:
How to add Poisson noise and Gaussian noise?
but it seems to be related to images.