35bcd7ada7488e6a2df941baeaf5c6315ceda207,inferno/trainers/callbacks/essentials.py,NaNDetector,end_of_training_iteration,#NaNDetector#,12

Before Change


        training_loss = self.trainer.get_state("training_loss")
        // Extract scalar
        if tu.is_tensor(training_loss):
            training_loss = training_loss.float()[0]
        if not np.isfinite(training_loss):
            raise RuntimeError("Loss is not finite (loss={})!".format(training_loss))

After Change


        training_loss = self.trainer.get_state("training_loss")
        // Extract scalar
        if tu.is_tensor(training_loss):
            training_loss = tu.unwrap(training_loss, extract_item=True)
        if not np.isfinite(training_loss):
            raise RuntimeError("Loss is not finite (loss={})!".format(training_loss))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: inferno-pytorch/inferno
Commit Name: 35bcd7ada7488e6a2df941baeaf5c6315ceda207
Time: 2018-08-07
Author: nasim.rahaman@iwr.uni-heidelberg.de
File Name: inferno/trainers/callbacks/essentials.py
Class Name: NaNDetector
Method Name: end_of_training_iteration


Project Name: inferno-pytorch/inferno
Commit Name: a72bd4148bbce310e28e9e6425358d7ba1bbf0b1
Time: 2018-06-11
Author: nasim.rahaman@iwr.uni-heidelberg.de
File Name: inferno/trainers/basic.py
Class Name: Trainer
Method Name: validate_for


Project Name: inferno-pytorch/inferno
Commit Name: 02a117e7eef4155bc22c6dc83f8bb3669a958bef
Time: 2018-06-11
Author: nasim.rahaman@iwr.uni-heidelberg.de
File Name: inferno/trainers/callbacks/logging/tensorboard.py
Class Name: TensorboardLogger
Method Name: log_object