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

  • 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.

主站蜘蛛池模板: 望城县| 开原市| 周宁县| 家居| 安乡县| 德阳市| 香格里拉县| 乳源| 永德县| 乐昌市| 绥滨县| 沧源| 南澳县| 无棣县| 中山市| 漳州市| 崇礼县| 贵南县| 汕头市| 瑞丽市| 九江县| 定西市| 高密市| 盐亭县| 石棉县| 子长县| 万盛区| 大化| 隆德县| 临朐县| 万安县| 吴川市| 海口市| 佛坪县| 静乐县| 乌恰县| 岱山县| 沭阳县| 静安区| 卢龙县| 滦南县|