What's the meaning of ignore_index
#775
Unanswered
luozhouyang
asked this question in
NLP
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In transformers, we use
ignore_index=-100
to pad label ids, so we can ignore these lables when compute loss and metrics. But in torchmetrics, the parameterignore_index
seems to delete a column in data(Tensor), which is puzzling.Beta Was this translation helpful? Give feedback.
All reactions