logoalt Hacker News

jmalickiyesterday at 4:40 PM1 replyview on HN

Behold the softmax: https://docs.pytorch.org/docs/2.11/generated/torch.nn.CrossE...


Replies

canjobearyesterday at 4:53 PM

Behold the actual definition of cross entropy: https://en.wikipedia.org/wiki/Cross-entropy

It's true that the PyTorch API conflates cross entropy and softmax, but they are separate concepts.