Skip to content

Commit

Permalink
Fix issue mutating if expressions (apache#2601)
Browse files Browse the repository at this point in the history
(cherry picked from commit f6be4d6)
  • Loading branch information
jroesch authored and ZihengJiang committed Feb 18, 2019
1 parent 3d53ef3 commit f08015e
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 @@ -117,9 +117,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 f08015e

Please sign in to comment.