- 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.
推薦閱讀
- MongoDB管理與開發精要
- Oracle RAC 11g實戰指南
- 數據驅動設計:A/B測試提升用戶體驗
- PostgreSQL指南:內幕探索
- Instant Autodesk AutoCAD 2014 Customization with .NET
- Construct 2 Game Development by Example
- Solaris操作系統原理實驗教程
- 數據庫技術及應用
- SIEMENS數控技術應用工程師:SINUMERIK 840D-810D數控系統功能應用與維修調整教程
- 數據挖掘競賽實戰:方法與案例
- 數據分析思維:產品經理的成長筆記
- Microsoft Dynamics NAV 2015 Professional Reporting
- Oracle 內核技術揭密
- Python金融數據挖掘與分析實戰
- Hive性能調優實戰