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

Target format for CrossEntropyLoss

Logits have shape (32, 5). For nn.CrossEntropyLoss with hard labels, what should the target tensor be?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions