Skip to content

Commit

Permalink
Update calls to affine::normalizeMemRefType function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ttjost committed Jul 13, 2023
1 parent cef52ef commit 5408c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Accelerators/NNPA/Conversion/ZHighToZLow/ZHighToZLow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ Value insertAllocOrEmitZeroConstant(ArrayRef<IndexExpr> dims,
ZTensorEncodingAttr::get(op->getContext(), layout));
ZMemRefType zMemRefType = convertZTensorToMemRefType(tensorType);
MemRefType resType = affine::normalizeMemRefType(
zMemRefType.value.cast<MemRefType>(), /*numSymbolicOperands=*/0);
zMemRefType.value.cast<MemRefType>());

// Create a ZHighStickifiedConstantOp.
ZHighStickifiedConstantOp stickifiedConstant =
Expand Down Expand Up @@ -661,7 +661,7 @@ struct ZHighToZLowStickifiedConstantOpLowering : public ConversionPattern {
assert(zMemRefType.value.cast<MemRefType>().getNumDynamicDims() == 0 &&
"MemRefType has dynamic dimensions");
MemRefType normalizedType = affine::normalizeMemRefType(
zMemRefType.value.cast<MemRefType>(), /*numSymbolicOperands=*/0);
zMemRefType.value.cast<MemRefType>());
ArrayRef<int64_t> normalizedShape = normalizedType.getShape();

// Get dense resource attribute.
Expand Down

0 comments on commit 5408c5f

Please sign in to comment.