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)
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)
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)