ValueError: Classification metrics can't handle a mix of unknown and binary targets : 0 and 1 Predictions

I’m not sure if this question is PyTorch-specific or rather targets sklearn or Python.
If your code is working fine in Python==3.7, I guess some underlying libraries, such as numpy or sklearn, were also updated?