Solved by KFrank in post #4 
              
              
                Hi Peter! 

If I understand your question correctly, I think that you’re missing the 
fact that: 
torch.distributions.Categorical (logits = logits)

and: 
torch.distributions.Categorical (probs = torch.softmax (logits, dim = -1))

return essentially the same (up to floating-point round-off)  distrib…