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

前端 未结 14 835
余生分开走
余生分开走 2020-12-07 06:33

I\'m a newbie to TensorFlow. I\'m confused about the difference between tf.placeholder and tf.Variable. In my view, tf.placeholder is

14条回答
  •  有刺的猬
    2020-12-07 07:30

    Tensorflow uses three types of containers to store/execute the process

    1. Constants :Constants holds the typical data.

    2. variables: Data values will be changed, with respective the functions such as cost_function..

    3. placeholders: Training/Testing data will be passed in to the graph.

提交回复
热议问题