10c7dbe6a1d48fc242e18aacafe8ff1691ffb408,pytorch_lightning/accelerators/legacy/ddp_hpc_accelerator.py,DDPHPCAccelerator,ddp_train,#DDPHPCAccelerator#,112
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)
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()
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances 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_accelerator.py
Class Name: DDPAccelerator
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_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/ddp2_accelerator.py
Class Name: DDP2Accelerator
Method Name: ddp_train