1.
import tensorflow as tf
state = tf.Variable(0,name='counter') # 定义变量state,并赋值0,名字counter
2.
tf.random_uniform((6, 6), minval=low,maxval=high,dtype=tf.float32)返回6*6的矩阵,产生于low和high之间,产生的值是均匀分布的。
1.
import tensorflow as tf
state = tf.Variable(0,name='counter') # 定义变量state,并赋值0,名字counter
2.
tf.random_uniform((6, 6), minval=low,maxval=high,dtype=tf.float32)返回6*6的矩阵,产生于low和high之间,产生的值是均匀分布的。