用DDPG算法跑代码,上午还没事,下午装了一个求解定积分的sympy包以后再运行神经网络代码就突然提示我TypeError: len is not well defined for symbolic Tensors. (activation_4/Identity:0) Please call x.shape
rather than len(x)
for shape information.话说这个问题之前我遇到过,我当时把tensorflow的版本从2降到了1,然后能用了,但是现在又出现了,而且把sympy卸载,重装低版本tensorflow也没用最后一顿弄,还是决定t做环境,又在annaconda里面新建了一个环境,keras和 tensorflow重新安装,终于好了,因此别碰这个包。
TypeError: len is not well defined for symbolic Tensors. (activation_4/Identity:0) Please call `x.sh
最新推荐文章于 2021-03-12 16:06:42 发布