Skip to content

Commit

Permalink
Deleting the asserts preventing reshaping of more than 4D tensors (#1524
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ajakovljevicTT authored Dec 9, 2024
1 parent a5bc17a commit 437f521
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions lib/Dialect/TTIR/IR/TTIROps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,6 @@ ::mlir::LogicalResult mlir::tt::ttir::ReshapeOp::verify() {
return emitOpError("Shape attribute must be non-empty");
}

// Check that the shape attribute has at most 5 elements
if (shape_size > 5) {
return emitOpError("Shape attribute must have at most 5 elements");
}

// Cardinality of the input and output tensors must be the same
if (inputType.getNumElements() != outputType.getNumElements()) {
return emitOpError(
Expand Down
5 changes: 0 additions & 5 deletions lib/Dialect/TTNN/IR/TTNNOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,6 @@ ::mlir::LogicalResult mlir::tt::ttnn::ReshapeOp::verify() {
return emitOpError("Shape attribute must be non-empty");
}

// Check that the shape attribute has at most 5 elements
if (shape_size > 5) {
return emitOpError("Shape attribute must have at most 5 elements");
}

// Cardinality of the input and output tensors must be the same
if (inputType.getNumElements() != outputType.getNumElements()) {
return emitOpError(
Expand Down

0 comments on commit 437f521

Please sign in to comment.