Skip to content

Commit

Permalink
Revert "[inference] prevent zero row SliceRowOp creation"
Browse files Browse the repository at this point in the history
This reverts commit cad4ac3.
  • Loading branch information
philipportner committed Oct 19, 2024
1 parent 426823d commit 6c454ba
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ir/daphneir/DaphneInferShapeOpInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,6 @@ std::vector<std::pair<ssize_t, ssize_t>> daphne::SliceRowOp::inferShape() {
" (found " +
std::to_string(loInPos) + " and " + std::to_string(upExPos) + ")");
resNumRows = upExPos - loInPos;
if (!resNumRows)
throw ErrorHandler::compilerError(getLoc(), "InferShapeOpInterface (daphne::SliceRowOp::inferShape)",
"SliceRowOp shape inference: cannot select zero rows"
" with slice between [" +
std::to_string(loInPos) + ":" + std::to_string(upExPos) + "].");
}

return {{resNumRows, srcNumCols}};
Expand Down

0 comments on commit 6c454ba

Please sign in to comment.