示例#1
0
 def Value(self):
   p = self.params
   num_decays = tf.floor(
       tf.div(
           tf.cast(py_utils.GetGlobalStep(), tf.float32),
           float(p.num_steps_per_decay)))
   return tf.pow(p.decay, num_decays)
示例#2
0
 def Value(self, step=None):
   p = self.params
   num_decays = tf.floor(
       tf.div(
           tf.cast(self.GetStep(step), tf.float32),
           float(p.num_steps_per_decay)))
   return tf.pow(p.decay, num_decays)
示例#3
0
 def FProp(self, theta, current_step):
   p = self.params
   num_decays = tf.floor(
       tf.div(tf.cast(current_step, tf.float32), float(p.num_steps_per_decay)))
   return tf.pow(p.decay, num_decays)