File tree 2 files changed +3
-2
lines changed
TorchConversion/Transforms
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4910,7 +4910,7 @@ class DecomposeAtenIndexTensorOp : public OpRewritePattern<AtenIndexTensorOp> {
4910
4910
4911
4911
SmallVector<bool > indexUsed =
4912
4912
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)
4914
4914
indexUsed.emplace_back (false );
4915
4915
bool indexIsConsecutive = true ;
4916
4916
int64_t firstUsedIndex = -1 ;
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ class ConvertCustomQuantizedMatmulOp : public OpConversionPattern<OperatorOp> {
86
86
if (failed (getConstantIntegerFromDefiningOp (unpackedTypeWidth, unpackedBitWidth))) {
87
87
return failure ();
88
88
}
89
- if (unpackedBitWidth != rhsElementType.getIntOrFloatBitWidth ()) {
89
+ if (unpackedBitWidth !=
90
+ static_cast <int >(rhsElementType.getIntOrFloatBitWidth ())) {
90
91
return failure ();
91
92
}
92
93
You can’t perform that action at this time.
0 commit comments