We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding the loss calculation part of the AR model, why isn't the mask being handled?
total_loss = F.cross_entropy(logits, targets, reduction=reduction)
Normally, shouldn't it be:
total_loss = F.cross_entropy(logits.mask_selected(y_mask), targets.mask_selected(y_mask), reduction=reduction)
What's the reason for not considering the mask?
The text was updated successfully, but these errors were encountered:
Regarding the loss calculation part of the AR model, why isn't the mask being handled? total_loss = F.cross_entropy(logits, targets, reduction=reduction) Normally, shouldn't it be: total_loss = F.cross_entropy(logits.mask_selected(y_mask), targets.mask_selected(y_mask), reduction=reduction) What's the reason for not considering the mask?
Hi, Did you understand why there is no mask in the ar loss?
Sorry, something went wrong.
No branches or pull requests
Regarding the loss calculation part of the AR model, why isn't the mask being handled?
Normally, shouldn't it be:
What's the reason for not considering the mask?
The text was updated successfully, but these errors were encountered: