2.tensorflow.python.framework.errors:asertion failed: [0] [Op:Assert] name: EagerVariableNameReuse

一、问题描述及贴图
tensorflow.python.framework.errors_impl.InvalidArgumentError: asertion failed: [0] [Op:Assert] name: EagerVariableNameReuse

二、解决办法
一般情况下可能是自己的GPU指定错了。
os.environ['CUDA_VISIBLE_DEVICES'] = '1'

一般在这个代码块这里修改GPU的型号,指定为你要训练模型的那块显卡。

2.tensorflow.python.framework.errors:asertion failed: [0] [Op:Assert] name: EagerVariableNameReuse最先出现在Python成神之路

版权声明:
作者:cc
链接:https://www.techfm.club/p/16592.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>