diff --git a/python/paddle/fluid/dygraph/dygraph_to_static/utils.py b/python/paddle/fluid/dygraph/dygraph_to_static/utils.py index d410df1589bb7ce07e78b08f2b799d0dcd84e9ee..ea5dbb45bc6d1d3f69a5ed61ce838c1de8dd5265 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):