Hi,
How can I install distributions package for pytorch?
import torch.distributions
import torch.distributions.uniform
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘torch.distributions.uniform’; ‘torch.distributions’ is not a package
Which PyTorch version are you using (print(torch.__version__))?
If you are using an older one, you could update it using the instructions on the website.
A lot was added into PyTorch since 0.3.1.
Why do you have to use this old version?
If you need help porting your code, feel free to post it here or create a new topic.
I could recommend to update to 1.1.0 and use the .to(device, non_blocking=True) method.
Have a look at the release notes for 0.4 to see some necessary changes. Also the most recent release notes will be useful.