diff --git a/python/vta/ir_pass.py b/python/vta/ir_pass.py index 12ef7daac731..dbce9a7b9102 100644 --- a/python/vta/ir_pass.py +++ b/python/vta/ir_pass.py @@ -135,7 +135,7 @@ def _do_fold(stmt): if body == stmt.body: return stmt ends = list(reversed(ends)) - body = tvm.make.stmt_seq(*(begins + [body] + ends)) + body = tvm.stmt.stmt_seq(*(begins + [body] + ends)) return tvm.make.AttrStmt( stmt.node, stmt.attr_key, stmt.value, body) return None @@ -307,7 +307,7 @@ def _do_fold(stmt): success[0] = True sync = tvm.make.Call( "int32", "vta.coproc_sync", [], tvm.expr.Call.Intrinsic, None, 0) - return tvm.make.Block(stmt.body, tvm.make.Evaluate(sync)) + return tvm.stmt.SeqStmt([stmt.body, tvm.make.Evaluate(sync)]) if _match_pragma(stmt, "trim_loop"): op = stmt.body assert isinstance(op, tvm.stmt.For)