Skip to content

Commit

Permalink
Only update expr when missing
Browse files Browse the repository at this point in the history
  • Loading branch information
nhynes committed Mar 25, 2019
1 parent 17127c2 commit dbd5dde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tvm/relay/frontend/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ def get_expr(self, name):

def set_expr(self, name, expr):
assert isinstance(expr, _expr.Expr)
self.exprs[name] = expr
if name not in self.exprs:
self.exprs[name] = expr

def set_padding(self, paddings):
self.paddings = paddings
Expand Down

0 comments on commit dbd5dde

Please sign in to comment.