- Python Reinforcement Learning
- Sudharsan Ravichandiran Sean Saito Rajalingappaa Shanmugamani Yang Wenzhuo
- 83字
- 2021-06-24 15:17:28
Variables
Variables are the containers used to store values. Variables will be used as input to several other operations in the computational graph. We can create TensorFlow variables using the tf.Variable() function. In the following example, we define a variable with values from a random normal distribution and name it weights:
weights = tf.Variable(tf.random_normal([3, 2], stddev=0.1), name="weights")
However, after defining a variable, we need to explicitly create an initialization operation using the tf.global_variables_initializer() method which will allocate resources for the variable.
推薦閱讀
- 數據分析實戰:基于EXCEL和SPSS系列工具的實踐
- 數據庫原理及應用教程(第4版)(微課版)
- Python數據分析與挖掘實戰
- Unity 5.x Game AI Programming Cookbook
- Word 2010中文版完全自學手冊
- InfluxDB原理與實戰
- Python醫學數據分析入門
- 數字媒體交互設計(初級):Web產品交互設計方法與案例
- 基于OPAC日志的高校圖書館用戶信息需求與檢索行為研究
- HikariCP連接池實戰
- Google Cloud Platform for Developers
- 一本書講透Elasticsearch:原理、進階與工程實踐
- 新手學會計(2013-2014實戰升級版)
- 數據庫與數據處理:Access 2010實現
- 機器學習:實用案例解析