notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

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

Open Lerbsishu opened this issue 1 year ago • 0 comments
trafficstars

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

Lerbsishu avatar Apr 17 '24 05:04 Lerbsishu