From 253441b55355303f6bc5814f41806d1ab0420b0d Mon Sep 17 00:00:00 2001 From: Yancey1989 Date: Fri, 13 Apr 2018 17:36:46 +0800 Subject: [PATCH] fix duplicate lr op after distribute transpiler --- python/paddle/fluid/distribute_transpiler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/paddle/fluid/distribute_transpiler.py b/python/paddle/fluid/distribute_transpiler.py index b0522b49f..aa15392d7 100644 --- a/python/paddle/fluid/distribute_transpiler.py +++ b/python/paddle/fluid/distribute_transpiler.py @@ -1115,4 +1115,6 @@ class DistributeTranspiler: for op2 in find_ops: if ufind.is_connected(op1, op2): lr_ops.append(op1) + # we only need to append op for once + break return lr_ops -- GitLab