Home
last modified time | relevance | path

Searched refs:completed_fraction (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Dlearning_rate_schedule.py599 completed_fraction = global_step_recomp / decay_steps
601 constant_op.constant(math.pi) * completed_fraction))
701 completed_fraction = global_step_recomp / first_decay_steps
703 def compute_step(completed_fraction, geometric=False): argument
707 math_ops.log(1.0 - completed_fraction * (1.0 - t_mul)) /
711 completed_fraction = (completed_fraction - sum_r) / t_mul**i_restart
714 i_restart = math_ops.floor(completed_fraction)
715 completed_fraction -= i_restart
717 return i_restart, completed_fraction
719 i_restart, completed_fraction = control_flow_ops.cond(
[all …]
Dlearning_rate_schedule_test.py345 completed_fraction = step / decay_steps
346 decay = 0.5 * (1.0 + math.cos(math.pi * completed_fraction))
385 completed_fraction = step / decay_steps
386 decay = fac * 0.5 * (1.0 + math.cos(math.pi * completed_fraction))
Dlegacy_learning_rate_decay_test.py327 completed_fraction = step / decay_steps
328 decay = 0.5 * (1.0 + math.cos(math.pi * completed_fraction))
362 completed_fraction = step / decay_steps
363 decay = fac * 0.5 * (1.0 + math.cos(math.pi * completed_fraction))