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

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

主站蜘蛛池模板: 黑河市| 金昌市| 河西区| 漯河市| 明光市| 游戏| 和平区| 呈贡县| 城口县| 沁源县| 桃园市| 邮箱| 五河县| 左云县| 岚皋县| 桐柏县| 锡林郭勒盟| 黎城县| 洛阳市| 班戈县| 昭通市| 准格尔旗| 蒙阴县| 恩平市| 昌乐县| 文水县| 民县| 集安市| 大田县| 柳州市| 曲靖市| 迭部县| 沙雅县| 东乌珠穆沁旗| 资源县| 海淀区| 南投市| 巨鹿县| 定结县| 马龙县| 平阴县|