From f392e472999302f3cde04cdebbd0e93aac157c18 Mon Sep 17 00:00:00 2001 From: Masahiro Masuda Date: Tue, 29 Jun 2021 17:31:13 +0900 Subject: [PATCH] fix passing storage scope --- src/te/schedule/schedule_ops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/te/schedule/schedule_ops.cc b/src/te/schedule/schedule_ops.cc index c2b80a3ffc5ba..6a783006b1c59 100644 --- a/src/te/schedule/schedule_ops.cc +++ b/src/te/schedule/schedule_ops.cc @@ -214,7 +214,7 @@ class SchedulePostProc : public StmtExprMutator { auto it = replace_realize_.find(key); if (it != replace_realize_.end()) { if (it->second.defined()) { - Stmt ret = ProducerRealize(it->second, op->bounds, op->condition, op->body); + Stmt ret = ProducerRealize(it->second, op->bounds, op->condition, op->body, op->storage_scope); return this->VisitStmt(ret); } else { return this->VisitStmt(op->body);