- Hands-On Reinforcement Learning with Python
- Sudharsan Ravichandiran
- 100字
- 2021-06-18 19:12:08
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.
推薦閱讀
- Learning Java Functional Programming
- Access 數據庫應用教程
- MATLAB 2020 從入門到精通
- Instant RubyMotion App Development
- 表哥的Access入門:以Excel視角快速學習數據庫開發(第2版)
- D3.js 4.x Data Visualization(Third Edition)
- UVM實戰
- Practical Game Design with Unity and Playmaker
- Machine Learning for Developers
- 進入IT企業必讀的324個Java面試題
- Python應用與實戰
- 虛擬現實建模與編程(SketchUp+OSG開發技術)
- Mastering ArcGIS Server Development with JavaScript
- Eclipse開發(學習筆記)
- C語言從入門到精通(第5版)