[Mlir-commits] [mlir] [MLIR] Setting MemorySpace During Bufferization (PR #78484)
ian Bearman
llvmlistbot at llvm.org
Tue Feb 6 08:47:14 PST 2024
================
@@ -1622,7 +1623,20 @@ CollapseShapeOp::inferCollapsedType(RankedTensorType type,
currentDim += dim;
}
- return RankedTensorType::get(newShape, type.getElementType());
+ auto encoding = type.getEncoding();
+ if (auto v = encoding.dyn_cast_or_null<VerifiableTensorEncoding>()) {
+ auto ignoreError = [&] {
+ auto emitter = mlir::emitError(UnknownLoc::get(type.getContext()));
+ emitter.abandon();
----------------
manbearian wrote:
See https://github.com/llvm/llvm-project/pull/80871
https://github.com/llvm/llvm-project/pull/78484
More information about the Mlir-commits
mailing list