>>> import torch
>>> m = torch.distributions.Bernoulli(torch.Tensor([0.3]))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'distributions'
This is my pytorch version. But I cannot find torch.distributions. Do I need to specifically install something in order to use distributions module?