From 6604593befb1c7997e2aa2690a7a7b3bb76c2e41 Mon Sep 17 00:00:00 2001 From: noituIover Date: Sun, 8 Sep 2019 00:44:39 +0800 Subject: [PATCH] Fix a typo (#3913) --- python/tvm/autotvm/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tvm/autotvm/util.py b/python/tvm/autotvm/util.py index 192e9cd..7c98acd 100644 --- 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(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 -- 2.7.4