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

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.

主站蜘蛛池模板: 江永县| 江川县| 察雅县| 桑日县| 涿鹿县| 宜城市| 西吉县| 三江| 鄂伦春自治旗| 左云县| 东阿县| 平乐县| 溆浦县| 抚州市| 平果县| 昂仁县| 绥棱县| 旬邑县| 永嘉县| 河北区| 喀喇沁旗| 余姚市| 庐江县| 青海省| 屏东市| 大城县| 衡阳市| 阜新| 酒泉市| 南皮县| 中牟县| 抚宁县| 连州市| 凤城市| 桓仁| 仙居县| 临武县| 永宁县| 北票市| 郑州市| 剑川县|