Skip to content

Commit

Permalink
Fix a typo (apache#3913)
Browse files Browse the repository at this point in the history
  • Loading branch information
llehtahw authored and wweic committed Sep 16, 2019
1 parent 155b60e commit 3d9d4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/autotvm/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def get_const_int(exp):
if isinstance(exp, int):
return exp
if not isinstance(exp, (expr.IntImm, expr.UIntImm)):
exp = ir_pass.Simplify(expr)
exp = ir_pass.Simplify(exp)
if not isinstance(exp, (expr.IntImm, expr.UIntImm)):
raise ValueError("Expect value to be constant int")
return exp.value
Expand Down

0 comments on commit 3d9d4d4

Please sign in to comment.