Skip to content

Commit

Permalink
Fix issue mutating if expressions (apache#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
jroesch authored and Wei Chen committed Feb 20, 2019
1 parent 1bc5f46 commit 7e4c738
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tvm/relay/expr_functor.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ def visit_global_id(self, global_var):

def visit_if(self, ite):
return If(
self.visit(ite.guard),
self.visit(ite.true_b),
self.visit(ite.false_b))
self.visit(ite.cond),
self.visit(ite.true_branch),
self.visit(ite.false_branch))

def visit_tuple(self, tup):
return Tuple([self.visit(field) for field in tup.fields])
Expand Down

0 comments on commit 7e4c738

Please sign in to comment.