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

  • 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.

主站蜘蛛池模板: 湟中县| 沙湾县| 琼中| 屏南县| 闻喜县| 耒阳市| 左权县| 定结县| 大连市| 休宁县| 丹东市| 定陶县| 金山区| 阳东县| 应城市| 望谟县| 界首市| 台北市| 滨州市| 峨眉山市| 滦南县| 彩票| 大宁县| 长兴县| 班玛县| 沙雅县| 靖宇县| 连平县| 清河县| 江源县| 全南县| 郑州市| 河北省| 龙游县| 永善县| 太仆寺旗| 田阳县| 华安县| 山东省| 三河市| 周至县|