4 ms·
Behold the softmax: https://docs.pytorch.org/docs/2.11/generated/torch.nn.CrossEntropyLoss.html https://docs.pytorch.org/docs/2.11/generated/torch.nn.CrossE...
by jmalicki 6mo ago
Behold the softmax: https://docs.pytorch.org/docs/2.11/generated/torch.nn.CrossEntropyLoss.html https://docs.pytorch.org/docs/2.11/generated/torch.nn.CrossE...
- canjobear 6mo agoBehold the actual definition of cross entropy: https://en.wikipedia.org/wiki/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.