官术网_书友最值得收藏!

  • Python Reinforcement Learning
  • Sudharsan Ravichandiran Sean Saito Rajalingappaa Shanmugamani Yang Wenzhuo
  • 100字
  • 2021-06-24 15:17:29

Placeholders

Think of placeholders as variables where you only define the type and dimension but will not assign the value. Placeholders are defined with no values. Values for the placeholders will be fed at runtime. Placeholders have an optional argument called shape, which specifies the dimensions of the data. If the shape is set to None then we can feed data of any size at runtime. Placeholders can be defined using the tf.placeholder() function:

x = tf.placeholder("float", shape=None)

To put it in simple terms, we use tf.Variable to store the data and tf.placeholder for feeding the external data.

主站蜘蛛池模板: 巍山| 永州市| 遂昌县| 镇坪县| 武定县| 中山市| 鸡东县| 华池县| 栾城县| 突泉县| 天台县| 银川市| 繁峙县| 临澧县| 三亚市| 怀来县| 江阴市| 和静县| 香河县| 额敏县| 汶川县| 普兰店市| 沅江市| 石阡县| 册亨县| 沂水县| 吴堡县| 栖霞市| 会东县| 汽车| 鄂托克旗| 驻马店市| 建宁县| 金寨县| 泸州市| 喀喇沁旗| 巴彦淖尔市| 金湖县| 临江市| 台前县| 彭水|