“Expected Long but got Int” while running PyTorch script

﹥>﹥吖頭↗ 提交于 2019-12-25 01:09:07

问题


I am facing this error while running a pytorch script.

Can anyone help me?

Expected object of scalar type Long but got scalar type Int for argument #2 'target'

来源:https://stackoverflow.com/questions/54262455/expected-long-but-got-int-while-running-pytorch-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!