[mlir] Fix of broken build on windows caused by using uint

This commit is contained in:
Jakub Lichman 2020-09-08 09:42:25 +00:00
parent 7aabb6ad77
commit 83d82d1fb1
1 changed files with 3 additions and 3 deletions

View File

@ -371,7 +371,7 @@ LogicalResult LinalgCopyVTWForwardingPattern::matchAndRewrite(
template <class ConvOp, int N>
LogicalResult ConvOpVectorization<ConvOp, N>::matchAndRewrite(
ConvOp op, PatternRewriter &rewriter) const {
const uint dimSize = 3;
const unsigned dimSize = 3;
Location loc = op.getLoc();
MLIRContext *context = op.getContext();
edsc::ScopedContext scope(rewriter, loc);
@ -402,8 +402,8 @@ LogicalResult ConvOpVectorization<ConvOp, N>::matchAndRewrite(
Value kernel = op.getInput(1);
Value output = op.getOutputBuffer(0);
uint rank = inShapeType.getRank();
uint numDims = mapping.size();
unsigned rank = inShapeType.getRank();
unsigned numDims = mapping.size();
Type elemType = inShapeType.getElementType();
auto map = AffineMap::get(rank, 0, mapping, context);