Hello everybody!
Just by looking at the code of Categorical and its base class, I was not able to find a line that assigns something to self.probs, if logits are supplied as the only argument. While using the debugger to step through the code, I observed that self.probs is assigned magically once the line
self.logits = logits - logits.logsumexp(dim=-1, keepdim=True)
is run.
It would be great if someone could shed some light onto this matter!
Thanks