Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f committed Nov 17, 2021
1 parent 47fec21 commit 7262c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/paddle/fluid/dygraph/dygraph_to_static/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,8 @@ def is_for_range_iter(self):
gast.Name) and self.node.iter.func.id == "range"

def is_for_iter(self):
if isinstance(self.node.iter, (gast.Name, gast.Attribute)):
if isinstance(self.node.iter,
(gast.Name, gast.Attribute, gast.List, gast.Tuple)):
return True
elif isinstance(self.node.iter, gast.Call) and isinstance(
self.node.iter.func,
Expand Down

0 comments on commit 7262c41

Please sign in to comment.