Skip to content

Commit

Permalink
Fix issue mutating if expressions (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
jroesch authored and tqchen committed Feb 18, 2019
1 parent d7390d1 commit f6be4d6
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 f6be4d6

Please sign in to comment.