diff --git a/python/paddle/fluid/trainer.py b/python/paddle/fluid/trainer.py index 0272b8b586b22a43776479a0cf1ea10c00381cc9..64049a93cb0a267722de9cd94961b6256551330d 100644 --- a/python/paddle/fluid/trainer.py +++ b/python/paddle/fluid/trainer.py @@ -348,7 +348,8 @@ class Trainer(object): training_role = os.getenv("PADDLE_TRAINING_ROLE") with self._prog_and_scope_guard(): t = distribute_transpiler.DistributeTranspiler() - t.transpile(self.trainer_id, pservers=pserver_endpoints, trainers=trainers) + t.transpile( + self.trainer_id, pservers=pserver_endpoints, trainers=trainers) if training_role == "PSERVER": if self.checkpoint_cfg: pserver_id = eplist.index(current_endpoint)