原文:tensorflow TypeError: Can not convert a float32 into a Tensor or Operation

遇到这种情况可能是你的程序中有和你定义的tensor 变量重名的其他变量名字,jishi在for循环中使用了这个名字的作为临时变量也不行.tenor 变量很娇气.坑了我一晚上的时间. 比如:x tf.placeholder tf.float , None, 那么在程序中就不能使用x作为其他变量名,jishi临时的也不行. 我就在for循环中使用了x所以........... 坑 这输入法也是坑,打 ...

2019-05-08 20:52 0 556 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM