- 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.
推薦閱讀
- 同步:秩序如何從混沌中涌現
- Unity 5.x Game AI Programming Cookbook
- Visual Studio 2015 Cookbook(Second Edition)
- 文本數據挖掘:基于R語言
- MySQL從入門到精通(第3版)
- Libgdx Cross/platform Game Development Cookbook
- 數據化網站運營深度剖析
- Dependency Injection with AngularJS
- Python金融實戰
- 網站數據庫技術
- 云原生數據中臺:架構、方法論與實踐
- 一本書講透Elasticsearch:原理、進階與工程實踐
- 大數據分析:數據倉庫項目實戰
- 數據修復技術與典型實例實戰詳解(第2版)
- 數據庫應用系統技術