Skip to content

Commit

Permalink
fix by code review
Browse files Browse the repository at this point in the history
  • Loading branch information
2742195759 committed Jul 5, 2022
1 parent 15fb43a commit bb6f175
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def __init__(self, wrapper_root):
self.root = wrapper_root.node
FunctionNameLivenessAnalysis(
self.root) # name analysis of current ast tree.
self.static_analysis_visitor = StaticAnalysisVisitor(self.root)

def transform(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/fluid/layers/control_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ def assign_skip_lod_tensor_array(input, output):
"""
Assign input to output, but skip the process of copying LoDTensorArray unless it's created in while_block.
"""
if not isinstance(input, Variable) and not isinstance(input, core.VarBase):
if not isinstance(input, (Variable, core.VarBase)):
if isinstance(output, Variable):
assign(input, output)
else:
Expand Down

0 comments on commit bb6f175

Please sign in to comment.