What’s the difference between tf.placeholder and tf.Variable?

I’m a newbie to TensorFlow. I’m confused about the difference between tf.placeholder and tf.Variable. In my view, tf.placeholder is used for input data, and tf.Variable is used to store the state of data. This is all what I know.

Could someone explain to me more in detail about their differences? In particular, when to use tf.Variable and when to use tf.placeholder?

14 Answers
14

Leave a Comment