[Mlir-commits] [mlir] [mlir][tosa] Support unranked input/weight tensors for convolution ops (PR #134856)
Luke Hutton
llvmlistbot at llvm.org
Tue Apr 22 07:04:14 PDT 2025
================
@@ -282,14 +282,14 @@ static LogicalResult verifyConvOp(T op) {
// tensors.
auto inputType = llvm::dyn_cast<RankedTensorType>(op.getInput().getType());
if (!inputType) {
- op.emitOpError("expect a ranked tensor for input, got ") << op.getInput();
- return failure();
+ // Skip following checks if input is not ranked
+ return success();
----------------
lhutton1 wrote:
good catch thanks - in fact I think we can just cast to shaped type here since the following checks don't rely on the tensors being ranked
https://github.com/llvm/llvm-project/pull/134856
More information about the Mlir-commits
mailing list