TypeError: The value of a feed cannot be a tf.Tensor object.

在进行占位符时   遇到这个问题

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类型   

猜你喜欢

转载自blog.csdn.net/bc521bc/article/details/84035255