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

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

主站蜘蛛池模板: 龙江县| 哈密市| 平塘县| 望城县| 河东区| 高密市| 济宁市| 乐安县| 周宁县| 阜城县| 黑山县| 额尔古纳市| 临海市| 都江堰市| 筠连县| 仪陇县| 新兴县| 龙泉市| 新竹县| 大厂| 万宁市| 陆河县| 阳东县| 荆州市| 博湖县| 渑池县| 犍为县| 水富县| 贺州市| 偃师市| 教育| 泰安市| 高清| 南安市| 扎赉特旗| 屯门区| 辛集市| 达州市| 沽源县| 英山县| 阿克|