Solved by richard in post #2 
              
              
                https://pytorch.org/docs/master/distributions.html?highlight=distributions#module-torch.distributions 
It looks like probs() and log_probs() are what you’re looking for