今天又遇到问题了,报错如下:
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
即可
成功解决RuntimeError: Variable += value not supported. Use variable.assign_add(value) to modify the vari
最新推荐文章于 2024-04-18 07:45:00 发布