在进行占位符时 遇到这个问题
TypeError: The value of a feed cannot be a tf.Tensor object. Acceptable feed values include Python scalars, strings, lists, numpy ndarrays, or TensorHandles.For reference, the tensor object was Tensor("Cast:0", shape=(1, 5832), dtype=float32) which was passed to the feed with key Tensor("data/Placeholder:0", shape=(?, 5832), dtype=float32).
feed_dict={}
意思就是 里面的值 必须是 非 tensor类型
本文探讨了在使用TensorFlow进行数据喂养时遇到的TypeError问题,详细解析了错误信息,指出feed_dict中不能包含tf.Tensor对象,而应使用Python基本类型、字符串、列表、numpy数组或TensorHandles。

754

被折叠的 条评论
为什么被折叠?



