tensorflow 滑动平均模型

注: 1.影子变量的功能是记录滑动平均值,滑动平均值并不会改变原始变量的值 2.decay的更新并不是递归... import tensorflow as tf v1 = tf.Variable(0, dtype = tf.float32)#定义变量用来计算滑动平均,初始化为0,shadow_variable = 0 step = tf.Variable(0, trainable = False)
相关文章
相关标签/搜索