Skip to content

Commit f2b6ec6

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in NormalizeQuantTypes.cpp (NFC)
1 parent 984251a commit f2b6ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Quant/Transforms/NormalizeQuantTypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ class NormalizedQuantTypesConverter : public TypeConverter {
8888
llvm::find_if(shape, [](int64_t dim) { return dim != 1; });
8989
auto scales = llvm::to_vector(llvm::map_range(
9090
subChannelType.getScales().getValues<APFloat>(),
91-
[](APFloat scale) { return scale.convertToDouble(); }));
91+
[](const APFloat &scale) { return scale.convertToDouble(); }));
9292
auto zeroPoints = llvm::to_vector(llvm::map_range(
9393
subChannelType.getZeroPoints().getValues<APInt>(),
94-
[](APInt zeroPoint) { return zeroPoint.getSExtValue(); }));
94+
[](const APInt &zeroPoint) { return zeroPoint.getSExtValue(); }));
9595
auto perAxisType = UniformQuantizedPerAxisType::get(
9696
subChannelType.getFlags(), subChannelType.getStorageType(),
9797
subChannelType.getExpressedType(), scales, zeroPoints,

0 commit comments

Comments
 (0)