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
17 changes: 17 additions & 0 deletions csrc/scheduler/greedy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,23 @@ class CompileTimeChecker : private IterVisitor {
void handle(PadOp* pad) override {
checkDomainConstraints(
ir_utils::getTvOutput(pad)->getLogicalDomain(), pad->getPaddedAxes());

for (const auto& logical_id :
ir_utils::getTvOutput(pad)->getLogicalDomain()) {
auto resize = dynamic_cast<Resize*>(logical_id->definition());
if (resize == nullptr) {
continue;
}
// Resize to broadcast not supported yet. Have not looked at
// details but getLoopPromotion fails at csrc/id_model/utils.h:105 (e.g.,
// ResizeTest.ResizePadToBroadcastStatic), likely because
// broadcast IDs are introduced without BroadcastOp.
// This is also the case with the resize scheduler.
if (resize->out()->isBroadcast()) {
reject("Resize to a broadcast ID is not allowed: ", pad->toString());
return;
}
}
}

void handle(TopKOp* topk) override {
Expand Down