MCPcopy Create free account
hub / github.com/42dot/VFDepth / train_ddp

Function train_ddp

train.py:45–51  ·  view source on GitHub ↗
(rank, cfg)

Source from the content-addressed store, hash-verified

43
44
45def train_ddp(rank, cfg):
46 print("Training on rank %d."%rank)
47 utils.setup_ddp(rank, cfg['ddp']['world_size'])
48 model = VFDepthAlgo(cfg, rank)
49 trainer = VFDepthTrainer(cfg, rank)
50 trainer.learn(model)
51 utils.clear_ddp()
52
53
54if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

learnMethod · 0.95
VFDepthAlgoClass · 0.90
VFDepthTrainerClass · 0.90

Tested by

no test coverage detected