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

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.

主站蜘蛛池模板: 星座| 民县| 安溪县| 武义县| 绥德县| 喜德县| 闻喜县| 清丰县| 墨江| 耒阳市| 泾源县| 抚远县| 青冈县| 琼海市| 肥乡县| 灵璧县| 聊城市| 清新县| 高要市| 栾城县| 东台市| 屏南县| 临安市| 蓝田县| 濮阳市| 涿州市| 临夏县| 得荣县| 汤原县| 讷河市| 巴南区| 高尔夫| 厦门市| 高要市| 神池县| 板桥市| 大荔县| 临潭县| 长治县| 方城县| 锦屏县|