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

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.

主站蜘蛛池模板: 西城区| 高平市| 伊吾县| 西乌珠穆沁旗| 太湖县| 浪卡子县| 中江县| 临潭县| 固镇县| 蕉岭县| 江津市| 峨眉山市| 宜宾市| 南部县| 宜宾县| 射洪县| 类乌齐县| 应城市| 新余市| 金山区| 海宁市| 望奎县| 乌拉特后旗| 开化县| 张家川| 子洲县| 五指山市| 衡阳县| 庆安县| 西宁市| 扶余县| 秦安县| 白沙| 筠连县| 林口县| 平罗县| 静安区| 京山县| 延川县| 虹口区| 衡南县|