Precision/Recall/Fbeta error out for floating tensor input of preds but OK for long tensor of preds
🐛 Bug

The current implementation of Precision/Recall/Fbeta used _input_format function to format input shapes and types. There appears to be a bug how this function deals with essential the same input of preds but different data types (long vs float)
Please reproduce using the BoringModel and post here

To Reproduce

Use the following notebook to replicate:
https://colab.research.google.com/drive/1GOzy9urgRmAud-Sadtva3c_GwO1nk5BD?usp=sharing
Expected behavior
The same output should be expected regardless of the input data types (long vs float) for preds

Environment

CUDA:

GPU:
available:         False
version:           10.1


Packages:

numpy:             1.18.5
pyTorch_debug:     True
pyTorch_version:   1.7.0+cu101
pytorch-lightning: 1.0.7
tqdm:              4.41.1


System:

OS:                Linux
architecture:

64bit



processor:         x86_64
python:            3.6.9
version:           #1 SMP Thu Jul 23 08:00:38 PDT 2020