成功解决RuntimeError: Variable += value not supported. Use variable.assign_add(value) to modify the vari

【成功解决RuntimeError: Variable += value not supported. Use variable.assign_add(value) to modify the vari】今天又遇到问题了,报错如下:
RuntimeError: Variable += value not supported. Use variable.assign_add(value) to modify the variable value and variable = variable + value to get a new Tensor object.
意思是说这个不支持也就是不要用a+=b,把它换成a=a+b即可

    推荐阅读