pytorch-video-recognition
pytorch-video-recognition copied to clipboard
RuntimeError: expected scalar type Long but found Int
D:\anaconda3\envs\pytorch114\lib\site-packages\torch\optim\lr_scheduler.py:134: UserWarning: Detected call of lr_scheduler.step()
before `optimizer.st
File "train.py", line 202, in
I have encountered this problem, how to solve it
oh me too
https://discuss.pytorch.org/t/runtimeerror-expected-object-of-scalar-type-long-but-got-scalar-type-float-when-using-crossentropyloss/30542 this will help you