MCPcopy
hub / github.com/PaddlePaddle/PaddleRec / run

Method run

tools/static_ps_trainer.py:81–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 self.pure_bf16 = self.config['pure_bf16']
80
81 def run(self):
82 self.init_fleet_with_gloo()
83 self.network()
84 if fleet.is_server():
85 self.run_server()
86 elif fleet.is_worker():
87 self.run_worker()
88 fleet.stop_worker()
89 self.record_result()
90 logger.info("Run Success, Exit.")
91
92 def init_fleet_with_gloo(use_gloo=True):
93 if use_gloo:

Callers 14

mainFunction · 0.45
run_workerMethod · 0.45
heter_train_loopMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
dataloader_trainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 5

init_fleet_with_glooMethod · 0.95
networkMethod · 0.95
run_serverMethod · 0.95
run_workerMethod · 0.95
record_resultMethod · 0.95

Tested by

no test coverage detected