tensorflow错误 Assign requires shapes of both tensors to match. lhs shape= rhs shape=

2023-05-16

在跑tensorflow任务的时候,有时候会碰到这种错误

Tensorflow Assign requires shapes of both tensors to match. lhs shape= [20] rhs shape= [48]

多半是因为保存的checkpoint文件和新跑的代码模型结构冲突了,尝试删除保存的checkpoint文件,一般问题可以得到解决

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

tensorflow错误 Assign requires shapes of both tensors to match. lhs shape= rhs shape= 的相关文章

随机推荐