Fix a typo (#3913)
authornoituIover <qazazsw@gmail.com>
Sat, 7 Sep 2019 16:44:39 +0000 (00:44 +0800)
committerZhi <5145158+zhiics@users.noreply.github.com>
Sat, 7 Sep 2019 16:44:39 +0000 (09:44 -0700)
python/tvm/autotvm/util.py

index 192e9cd..7c98acd 100644 (file)
@@ -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