1. 程式人生 > >TypeError: The value of a feed cannot be a tf.Tensor object.

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