上述代码出现的报错为Traceback most recent call last File CUsersAdministratorDesktopxmxmcxpyinformer_nbpy line 253 in module output = modelbatch_x batch_y File CUsersAdministratorvenvlibsite-packagestorc
这个报错的原因是在代码的第173行,使用了位运算符"&",但是操作数是Float类型的张量,而位运算符只能用于整型数据。解决方法是将操作数的数据类型改为整型。
原文地址: http://www.cveoy.top/t/topic/bhRX 著作权归作者所有。请勿转载和采集!