We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.