[Mlir-commits] [mlir] 4ecfdf8 - Apply clang-tidy fixes for readability-identifier-naming in TosaDecomposeConv2D.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sat Nov 12 15:47:56 PST 2022
Author: Mehdi Amini
Date: 2022-11-12T23:47:38Z
New Revision: 4ecfdf8a739ca4dfde7d13b65433823864af0199
URL: https://github.com/llvm/llvm-project/commit/4ecfdf8a739ca4dfde7d13b65433823864af0199
DIFF: https://github.com/llvm/llvm-project/commit/4ecfdf8a739ca4dfde7d13b65433823864af0199.diff
LOG: Apply clang-tidy fixes for readability-identifier-naming in TosaDecomposeConv2D.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeConv2D.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeConv2D.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeConv2D.cpp
index 790648e451e48..65ac820056e22 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeConv2D.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeConv2D.cpp
@@ -19,7 +19,7 @@ using namespace mlir::tosa;
namespace {
-SmallVector<int64_t> ConvertFromMlirShape(ArrayRef<int64_t> shape) {
+SmallVector<int64_t> convertFromMlirShape(ArrayRef<int64_t> shape) {
return to_vector(llvm::map_range(shape, [](int64_t dim) {
return ShapedType::isDynamic(dim) ? -1 : dim;
}));
@@ -68,7 +68,7 @@ struct Conv2DIsFullyConnected : public OpRewritePattern<tosa::Conv2DOp> {
.create<tosa::ReshapeOp>(
op.getLoc(), revisedInputShapeType, input,
rewriter.getI64ArrayAttr(
- ConvertFromMlirShape(revisedInputShape)))
+ convertFromMlirShape(revisedInputShape)))
.getResult();
// Reshape kernel to [OC,KH,KW,IC] -> [OC, IC].
@@ -81,7 +81,7 @@ struct Conv2DIsFullyConnected : public OpRewritePattern<tosa::Conv2DOp> {
.create<tosa::ReshapeOp>(
op.getLoc(), revisedWeightShapeType, weight,
rewriter.getI64ArrayAttr(
- ConvertFromMlirShape(revisedWeightShape)))
+ convertFromMlirShape(revisedWeightShape)))
.getResult();
// Perform a fully connected network over the reshaped input and weight.
@@ -110,7 +110,7 @@ struct Conv2DIsFullyConnected : public OpRewritePattern<tosa::Conv2DOp> {
inputShape[2], weightShape[0]};
rewriter.replaceOpWithNewOp<tosa::ReshapeOp>(
op, resultType, fullyConnectedValue,
- rewriter.getI64ArrayAttr(ConvertFromMlirShape(outputShape)));
+ rewriter.getI64ArrayAttr(convertFromMlirShape(outputShape)));
return success();
}
};
More information about the Mlir-commits
mailing list