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

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

主站蜘蛛池模板: 两当县| 光山县| 简阳市| 翼城县| 丰台区| 宽甸| 柳江县| 康平县| 沙雅县| 伊春市| 吴忠市| 额尔古纳市| 临安市| 喀喇沁旗| 祥云县| 化隆| 泗洪县| 彩票| 古田县| 万州区| 于田县| 普兰店市| 惠州市| 谢通门县| 凤台县| 韶关市| 永年县| 盘锦市| 多伦县| 长春市| 西乌珠穆沁旗| 萨嘎县| 台湾省| 策勒县| 合山市| 麻江县| 大荔县| 达州市| 南昌市| 城固县| 太谷县|