Skip to content

Commit 5895b9f

Browse files
authored
fix compile warning (#2453)
1 parent 1f20b72 commit 5895b9f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4910,7 +4910,7 @@ class DecomposeAtenIndexTensorOp : public OpRewritePattern<AtenIndexTensorOp> {
49104910

49114911
SmallVector<bool> indexUsed =
49124912
llvm::to_vector(llvm::map_range(indices, isTensor));
4913-
for (size_t i = indices.size(); i < inputRank; ++i)
4913+
for (int64_t i = indices.size(); i < inputRank; ++i)
49144914
indexUsed.emplace_back(false);
49154915
bool indexIsConsecutive = true;
49164916
int64_t firstUsedIndex = -1;

lib/Dialect/TorchConversion/Transforms/ConvertCustomQuantOp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ class ConvertCustomQuantizedMatmulOp : public OpConversionPattern<OperatorOp> {
8686
if (failed(getConstantIntegerFromDefiningOp(unpackedTypeWidth, unpackedBitWidth))) {
8787
return failure();
8888
}
89-
if (unpackedBitWidth != rhsElementType.getIntOrFloatBitWidth()) {
89+
if (unpackedBitWidth !=
90+
static_cast<int>(rhsElementType.getIntOrFloatBitWidth())) {
9091
return failure();
9192
}
9293

0 commit comments

Comments
 (0)