projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8c6adc
)
Fix a typo (#3913)
author
noituIover
<qazazsw@gmail.com>
Sat, 7 Sep 2019 16:44:39 +0000
(
00:44
+0800)
committer
Zhi
<5145158+zhiics@users.noreply.github.com>
Sat, 7 Sep 2019 16:44:39 +0000
(09:44 -0700)
python/tvm/autotvm/util.py
patch
|
blob
|
history
diff --git
a/python/tvm/autotvm/util.py
b/python/tvm/autotvm/util.py
index
192e9cd
..
7c98acd
100644
(file)
--- a/
python/tvm/autotvm/util.py
+++ b/
python/tvm/autotvm/util.py
@@
-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(exp
r
)
+ exp = ir_pass.Simplify(exp)
if not isinstance(exp, (expr.IntImm, expr.UIntImm)):
raise ValueError("Expect value to be constant int")
return exp.value