6e4ae87778510fb8894583ad0a69d86ad6b6a724,scripts/bert/fp16_utils.py,FP16Trainer,step,#FP16Trainer#Any#Any#,146

Before Change


                self.fp32_trainer.update(step_size)
                overflow = is_finite.asscalar() < 1
            else:
                overflow = not np.isfinite(norm.asscalar())
                if not overflow:
                    self.fp32_trainer.update(step_size)
        else:
            // TODO(haibin) optimize the performance when max_norm is not present

After Change


                self.fp32_trainer.update(step_size)
                overflow = is_finite.asscalar() < 1
            else:
                overflow = is_finite.asscalar() < 1
                if not overflow:
                    self.fp32_trainer.update(step_size)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 6e4ae87778510fb8894583ad0a69d86ad6b6a724
Time: 2019-09-24
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/fp16_utils.py
Class Name: FP16Trainer
Method Name: step


Project Name: dmlc/gluon-cv
Commit Name: ab97f4c9b035b9a77b3ffd2e7bb460c7f573c3f2
Time: 2018-05-29
Author: cheungchih@gmail.com
File Name: gluoncv/loss.py
Class Name: SSDMultiBoxLoss
Method Name: forward


Project Name: dmlc/gluon-nlp
Commit Name: 4b83eb6bcc8881e5f1081a3675adaa19fac5c0ba
Time: 2019-04-24
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/fp16_utils.py
Class Name: FP16Trainer
Method Name: step


Project Name: dmlc/gluon-nlp
Commit Name: 2bf8adc6913f17dfe8324b1b1a63df4d2b92b9a1
Time: 2018-08-13
Author: linhaibin.eric@gmail.com
File Name: scripts/language_model/large_word_language_model.py
Class Name:
Method Name: test