Skip to content

Commit aae820e

Browse files
[TIR][Schedule] TileWithTensorInstrin Skip some ComputeInline for some producer if not padded
1 parent a59db03 commit aae820e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tir/schedule/transform.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,12 @@ Optional<LoopRV> TileWithTensorIntrin(const tir::Schedule& sch, const tir::Block
318318
auto producers = sch->GetProducers(block_rv);
319319
for (const auto& producer : producers) {
320320
auto original_producers = sch->GetProducers(producer);
321-
ICHECK_EQ(original_producers.size(), 1u);
321+
// NOTICE: there may not all producers padded.
322322
// Inline the original producer into the padding block. This ensures that the new producer
323323
// has the padded shape.
324-
sch->ComputeInline(original_producers[0]);
324+
if (original_producers.size() == 1u) {
325+
sch->ComputeInline(original_producers[0]);
326+
}
325327
}
326328
auto consumers = sch->GetConsumers(block_rv);
327329
for (const auto& consumer : consumers) {

0 commit comments

Comments
 (0)