I want to create a Truncated normal distribution(that is Gaussian distribution with a range) in PyTorch.
I want to be able to change the mean, std, and range.
Is there a PyTorch method for that?
-
2This seems to be helpful, you can basically replicate the equivalent scipy version: discuss.pytorch.org/t/implementing-truncated-normal-initializer/… – TYZ Feb 14 '20 at 21:35
Add a comment
|