[all-commits] [llvm/llvm-project] 75e08a: [mlir][linalg] Add tests for PadOp (#110271)
Andrzej Warzyński via All-commits
all-commits at lists.llvm.org
Sat Sep 28 02:30:59 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 75e08a527b716a11b3085a9ea4f5bed80c386323
https://github.com/llvm/llvm-project/commit/75e08a527b716a11b3085a9ea4f5bed80c386323
Author: Andrzej Warzyński <andrzej.warzynski at arm.com>
Date: 2024-09-28 (Sat, 28 Sep 2024)
Changed paths:
M mlir/test/Dialect/Linalg/transform-op-pad.mlir
Log Message:
-----------
[mlir][linalg] Add tests for PadOp (#110271)
Adds 3 tests for the logic to pad Linalg ops. Specifically, for
transformation under the `transform.structured.pad` TD Op.
For `@zero_pad_static` I simply took an existing test and added
check-lines. According to comments, it should fail. However, when I
tried it, it actually worked. Indeed, it triggers an important edge
cases - padding by 0 when all the shapes are static.
`@zero_pad_dynamic` exercises similar case, but some dimensions in the
input tensors are made dynamic - that's added to improve the test
coverage. Note that in this case we are padding the static dim.
Finally, `@negative_no_ub_estimate` is similar to `@zero_pad_dynamic`,
but we are trying to pad a dynamic dim instead. This fails as it's
impossible to compute the padded shape.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list