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
The perplexity metric requires the input dtype to be either fp32 or fp64, but this doesn't work with e.g. fp16, and users need to manually recast.
torchmetrics/src/torchmetrics/functional/text/perplexity.py
Line 21 in 894de4c
The metric should accept other floating point dtypes.
The text was updated successfully, but these errors were encountered:
SkafteNicki
Successfully merging a pull request may close this issue.
🐛 Bug
The perplexity metric requires the input dtype to be either fp32 or fp64, but this doesn't work with e.g. fp16, and users need to manually recast.
torchmetrics/src/torchmetrics/functional/text/perplexity.py
Line 21 in 894de4c
Expected behavior
The metric should accept other floating point dtypes.
The text was updated successfully, but these errors were encountered: