仅作为记录,大佬请跳过。
(mean teacher的github程序:传送门)
调试时出现如下错误RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead.
解决:
将/改为//
即可(pycharm本地笔记本程序和远端服务器程序都要修改)(博主是用的pycharm连接远程服务器传送门)
参考: