From f9a4f9f4c427d291d971b6120bf08f4ffe7440b3 Mon Sep 17 00:00:00 2001 From: liym27 <33742067+liym27@users.noreply.github.com> Date: Tue, 12 May 2020 15:38:29 +0800 Subject: [PATCH] Remove redundant code. test=develop (#24397) --- python/paddle/fluid/dygraph/dygraph_to_static/utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/paddle/fluid/dygraph/dygraph_to_static/utils.py b/python/paddle/fluid/dygraph/dygraph_to_static/utils.py index d410df1589b..ea5dbb45bc6 100644 --- a/python/paddle/fluid/dygraph/dygraph_to_static/utils.py +++ b/python/paddle/fluid/dygraph/dygraph_to_static/utils.py @@ -503,8 +503,6 @@ class IsControlFlowVisitor(gast.NodeVisitor): def _visit_For(self, node): assert isinstance(node, gast.For) - # TODO - # self.is_control_flow_num += 1 if not isinstance(node.iter, gast.Call): return if not isinstance(node.iter.func, gast.Name): -- GitLab