Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/tir/schedule/transform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,12 @@ Optional<LoopRV> TileWithTensorIntrin(const tir::Schedule& sch, const tir::Block
auto producers = sch->GetProducers(block_rv);
for (const auto& producer : producers) {
auto original_producers = sch->GetProducers(producer);
ICHECK_EQ(original_producers.size(), 1u);
// NOTICE: there may not all producers padded.
// Inline the original producer into the padding block. This ensures that the new producer
// has the padded shape.
sch->ComputeInline(original_producers[0]);
if (original_producers.size() == 1u) {
sch->ComputeInline(original_producers[0]);
}
}
auto consumers = sch->GetConsumers(block_rv);
for (const auto& consumer : consumers) {
Expand Down