原文:has invalid type , must be a string or Tensor

转自:https: blog.csdn.net jacke article details has invalid type lt class numpy.ndarray gt , must be a string or Tensor. Can not convert a ndarray into a Tensor or Operation. 原因:变量命名重复了 解决方法:把任意一个变量名改了就 ...

2018-08-21 11:15 0 3060 推荐指数:

查看详情

TypeError: unhashable type: 'numpy.ndarray'

在TensorFlow中运行程序出现如下 TypeError: unhashable type: 'numpy.ndarray',主要原因可能是数据类型的问题,如下: 可能X_train 是 DataFrame格式的,不能用于迭代,可将其转化成 np.array 格式的,如 X_train ...

Thu Jul 12 06:12:00 CST 2018 0 11789
tensorflow中出现{TypeError}unhashable type: 'numpy.ndarray'

本人实验中使用feed的方式填充数据,sess处的代码如下: 运行的时候出现:{TypeError}unhashable type: 'numpy.ndarray' 后  来  发  现: 在session外边定义input和target的时候是这么写 ...

Mon Jul 02 18:35:00 CST 2018 0 4969
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM