[Mlir-commits] [mlir] [mlir][tosa] Add missing verifier for `tosa.pad` (PR #120934)
Longsheng Mou
llvmlistbot at llvm.org
Mon Dec 23 02:47:49 PST 2024
================
@@ -1566,7 +1566,7 @@ def Tosa_PadOp : Tosa_InferShapedTypeOp<"pad"> {
let arguments = (ins
Tosa_RankedTensor:$input1,
- Tosa_Int32Or64Tensor:$padding,
+ 2DTensorOf<[Tosa_Int32Or64]>:$padding,
----------------
CoTinker wrote:
The Spec says the type is `shape_t<[2*rank(shape1)]>`, I'm not sure it's 1D or 2D. But I find that the padding of `tosa.pad` before is all 2D.
https://github.com/llvm/llvm-project/pull/120934
More information about the Mlir-commits
mailing list