From 5b152b1fac596501ebb9bf068770744ed62c0a20 Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Thu, 27 Sep 2018 10:01:37 +0800 Subject: [PATCH] fix graph num --- python/paddle/fluid/transpiler/distribute_transpiler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/paddle/fluid/transpiler/distribute_transpiler.py b/python/paddle/fluid/transpiler/distribute_transpiler.py index 3ddc1f3addb..054bf9763ca 100644 --- a/python/paddle/fluid/transpiler/distribute_transpiler.py +++ b/python/paddle/fluid/transpiler/distribute_transpiler.py @@ -470,7 +470,10 @@ class DistributeTranspiler(object): """ # remove optimize ops and add a send op to main_program # FIXME(typhoonzero): Also ops like clip_gradient, lrn_decay? + lr_ops = self._get_lr_ops() delete_ops(self.origin_program.global_block(), self.optimize_ops) + delete_ops(self.origin_program.global_block(), lr_ops) + self.origin_program.__str__() if wait_port: -- GitLab