tensor.reshape gets bufferized to memref.reshape, which requires its
operands to have statically known identity layout. The previous
implementation did this conversion blindly, so a tensor in non-identity
layout would be converted into a memref op that does not verify. This
patch extends the conversion such that an input that gets bufferized
into a non-identity layout gets copied into a new allocation, which can
then be reshaped.
Details
Details
- Reviewers
springerm nicolasvasilache
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp | ||
---|---|---|
1006 | I do not intend to work on this TODO as part of this patch. |
Comment Actions
Something like this has landed recently: https://github.com/llvm/llvm-project/pull/65654
I do not intend to work on this TODO as part of this patch.