RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one.

RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one._第1张图片

vscode命令窗报错EOF Error

1、查看模型中init定义的参数在forward中是否没有被使用,如果是,注释掉就可以了

2、查看loss计算过程中是否计算的loss与模型输出有不匹配的地方,如果有,修改掉即可 

你可能感兴趣的:(python,vscode)