d583d561690ea975ebd9ea41e1b7054495aa0bcb,tests/loggers/test_base.py,,test_multiple_loggers,#Any#,114

Before Change




def test_multiple_loggers(tmpdir):
    hparams = EvalModelTemplate.get_default_hparams()
    model = EvalModelTemplate(**hparams)

    logger1 = CustomLogger()
    logger2 = CustomLogger()

After Change


            self.log("train_loss", loss)
            return {"loss": loss}

    model = CustomModel()
    logger1 = CustomLogger()
    logger2 = CustomLogger()

    trainer = Trainer(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: williamFalcon/pytorch-lightning
Commit Name: d583d561690ea975ebd9ea41e1b7054495aa0bcb
Time: 2021-01-10
Author: rohitgr1998@gmail.com
File Name: tests/loggers/test_base.py
Class Name:
Method Name: test_multiple_loggers


Project Name: williamFalcon/pytorch-lightning
Commit Name: 8e9a026bc34d8409faa572a7144c2d96a7c039ed
Time: 2021-02-11
Author: rohitgr1998@gmail.com
File Name: tests/models/test_restore.py
Class Name:
Method Name: test_dp_resume


Project Name: williamFalcon/pytorch-lightning
Commit Name: d583d561690ea975ebd9ea41e1b7054495aa0bcb
Time: 2021-01-10
Author: rohitgr1998@gmail.com
File Name: tests/loggers/test_base.py
Class Name:
Method Name: test_custom_logger