10c7dbe6a1d48fc242e18aacafe8ff1691ffb408,pytorch_lightning/accelerators/legacy/ddp2_accelerator.py,DDP2Accelerator,ddp_train,#DDP2Accelerator#Any#Any#Any#,120

Before Change


        self.ddp_plugin.on_after_setup_optimizers(self.trainer)

        // set model properties before going into wrapper
        self.trainer.model_connector.copy_trainer_model_properties(model)

        // 16-bit
        model = self.trainer.precision_connector.connect(model)

        // device ids change depending on the DDP setup
        device_ids = self.get_device_ids()

        // allow user to configure ddp
        model = self.configure_ddp(model, device_ids)

        // set up training routine
        self.trainer.train_loop.setup_training(model)

        // train or test
        results = self.train_or_test()

After Change


        // allow user to configure ddp
        model = self.configure_ddp(model, device_ids)

        self.trainer.setup_trainer(model)

        // train or test
        results = self.train_or_test()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 8

Instances


Project Name: williamFalcon/pytorch-lightning
Commit Name: 10c7dbe6a1d48fc242e18aacafe8ff1691ffb408
Time: 2021-02-03
Author: rohitgr1998@gmail.com
File Name: pytorch_lightning/accelerators/legacy/ddp2_accelerator.py
Class Name: DDP2Accelerator
Method Name: ddp_train


Project Name: williamFalcon/pytorch-lightning
Commit Name: 10c7dbe6a1d48fc242e18aacafe8ff1691ffb408
Time: 2021-02-03
Author: rohitgr1998@gmail.com
File Name: pytorch_lightning/accelerators/legacy/ddp_cpu_spawn_accelerator.py
Class Name: DDPCPUSpawnAccelerator
Method Name: ddp_train


Project Name: williamFalcon/pytorch-lightning
Commit Name: 10c7dbe6a1d48fc242e18aacafe8ff1691ffb408
Time: 2021-02-03
Author: rohitgr1998@gmail.com
File Name: pytorch_lightning/accelerators/legacy/ddp_hpc_accelerator.py
Class Name: DDPHPCAccelerator
Method Name: ddp_train


Project Name: williamFalcon/pytorch-lightning
Commit Name: 10c7dbe6a1d48fc242e18aacafe8ff1691ffb408
Time: 2021-02-03
Author: rohitgr1998@gmail.com
File Name: pytorch_lightning/accelerators/legacy/ddp_spawn_accelerator.py
Class Name: DDPSpawnAccelerator
Method Name: ddp_train


Project Name: williamFalcon/pytorch-lightning
Commit Name: 10c7dbe6a1d48fc242e18aacafe8ff1691ffb408
Time: 2021-02-03
Author: rohitgr1998@gmail.com
File Name: pytorch_lightning/accelerators/legacy/ddp_accelerator.py
Class Name: DDPAccelerator
Method Name: ddp_train