Skip to content
RED SAG Skills
mediumStudy question · answer published in PyTorch interview questions, so no pointsdeep-learningautogradloss-functions

Using argmax inside a loss

A custom loss uses torch.argmax(logits, dim=1) to pick classes and compares them with labels. The model does not learn. Why?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions