updated logic within Trainer class to allow for multiprocess training

This commit is contained in:
evonneng committed 2022-04-15 21:53:35 +00:00
1 parent ac3e7515ef
commit 62d4218421
3 files changed
+17 -24

No files matched your search

+5 -2
View File
@@ -112,8 +112,11 @@ def _train(local_rank: int, world_size: int, config: DictConfig) -> Any:
Returns:
Any: TODO(): determine the return type
"""
# trainer = Trainer(local_rank, world_size, config)
# trainer.train()
trainer = Trainer(local_rank, world_size, config)
trainer.setup_graph()
trainer.setup_optimizer()
trainer.setup_dataset()
trainer.train()
return 0