huggingface/notebooks

RuntimeError expected scalar type Long but found Int in audio_classification.ipynb

Lerbsishu opened this issue · 0 comments

trainer.train()
File "E:\PycharmProjects\demo\venv\lib\site-packages\torch\nn\functional.py", line 3029, in cross_entropy
return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
RuntimeError: expected scalar type Long but found Int