21cd0774c8c3d41a8464427c81629075c953e7e3,models/official/retinanet/retinanet_model.py,,learning_rate_schedule,#Any#Any#Any#Any#Any#Any#,117

Before Change


  Handles linear scaling rule, gradual warmup, and LR decay.
  // lr_warmup_init is the starting learning rate; the learning rate is linearly
  // scaled up to the full learning rate after `lr_warmup_steps` before decaying.
  linear_warmup = [(lr_warmup_init + float(step) / lr_warmup_step *
                    (1 - lr_warmup_init), step)
                   for step in range(lr_warmup_step)]
  lr_schedule = linear_warmup + [[1.0, lr_warmup_step],
                                 [0.1, first_lr_drop_step],
                                 [0.01, second_lr_drop_step]]

After Change


  linear_warmup = (lr_warmup_init +
                   (tf.cast(global_step, dtype=tf.float32) / lr_warmup_step *
                    (adjusted_learning_rate - lr_warmup_init)))
  learning_rate = tf.where(global_step < lr_warmup_step,
                           linear_warmup, adjusted_learning_rate)
  lr_schedule = [[1.0, lr_warmup_step],
                 [0.1, first_lr_drop_step],
                 [0.01, second_lr_drop_step]]
  for mult, start_global_step in lr_schedule:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/tpu
Commit Name: 21cd0774c8c3d41a8464427c81629075c953e7e3
Time: 2018-09-05
Author: xiejw0217@gmail.com
File Name: models/official/retinanet/retinanet_model.py
Class Name:
Method Name: learning_rate_schedule


Project Name: chainer/chainer
Commit Name: 78bedaa511160c63fd64bed53620b16dfd44a1c0
Time: 2019-10-31
Author: y1r.ueno@gmail.com
File Name: chainer/functions/evaluation/accuracy.py
Class Name: Accuracy
Method Name: forward


Project Name: SeldonIO/seldon-core
Commit Name: 248491136ad350e7b9a749cfc2e53e66487a01b4
Time: 2018-12-19
Author: jk@seldon.io
File Name: examples/routers/epsilon_greedy/EpsilonGreedy.py
Class Name: EpsilonGreedy
Method Name: send_feedback