fix(compiler): remove 1 warning (usgined vs signed)

This commit is contained in:
rudy
2021-12-10 16:54:07 +01:00
committed by rudy-6-4
parent 6c1800048a
commit d34792c977

View File

@@ -162,7 +162,7 @@ getBroadcastedAffineMapMultiLUT(const mlir::RankedTensorType &resultType,
affineExprs.reserve(operandShape.size());
// Don't take the lut dimension into account
size_t deltaNumDim = resultShape.size() - operandShape.size() + 1;
for (auto i = 0; i < operandShape.size() - 1; i++) {
for (size_t i = 0; i < operandShape.size() - 1; i++) {
if (operandShape[i] == 1 && resultShape[i + deltaNumDim] != 1) {
affineExprs.push_back(rewriter.getAffineConstantExpr(0));
} else {