From 757e945d54eedf9a4654c1d98a5e742a461dcc9b Mon Sep 17 00:00:00 2001 From: Vinayak Dev Date: Fri, 20 Sep 2024 12:35:34 +0530 Subject: [PATCH] Fix lint errors --- onnxruntime/core/providers/iree/compiler/jit_compiler.cc | 5 +++-- .../iree/compiler/torch-mlir-import-onnx/OnnxImporter.h | 5 +++-- onnxruntime/python/onnxruntime_pybind_state.cc | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/onnxruntime/core/providers/iree/compiler/jit_compiler.cc b/onnxruntime/core/providers/iree/compiler/jit_compiler.cc index cdb2594a9dab9..382208cce528f 100644 --- a/onnxruntime/core/providers/iree/compiler/jit_compiler.cc +++ b/onnxruntime/core/providers/iree/compiler/jit_compiler.cc @@ -194,8 +194,9 @@ common::Status CompilerInvocation::ImportSubgraph(const onnxruntime::GraphViewer } if (torch_mlir_onnx::failed(imp.ImportAll())) { - return ORT_MAKE_STATUS(ONNXRUNTIME, INVALID_GRAPH, "Failed to import nodes", ": ", - model_info.error_message(), ConsumeDiagnostics()); + return ORT_MAKE_STATUS(ONNXRUNTIME, INVALID_GRAPH, "Failed to import nodes", + ": ", model_info.error_message(), + ConsumeDiagnostics()); } // Verify the function at the point of import because we have better diagnostics. diff --git a/onnxruntime/core/providers/iree/compiler/torch-mlir-import-onnx/OnnxImporter.h b/onnxruntime/core/providers/iree/compiler/torch-mlir-import-onnx/OnnxImporter.h index 3618c9264eac7..733aefbda2583 100644 --- a/onnxruntime/core/providers/iree/compiler/torch-mlir-import-onnx/OnnxImporter.h +++ b/onnxruntime/core/providers/iree/compiler/torch-mlir-import-onnx/OnnxImporter.h @@ -21,8 +21,8 @@ #include "mlir-c/IR.h" #include "onnx/onnx_pb.h" -#include #include +#include #include #include @@ -66,7 +66,8 @@ static inline bool failed(Status status) { return !status.is_success(); } // Accounting for a GraphProto. class GraphInfo { public: - GraphInfo(const onnxruntime::GraphViewer &gv, ModelInfo &model_info, const onnx::GraphProto &graph_proto) + GraphInfo(const onnxruntime::GraphViewer &gv, ModelInfo &model_info, + const onnx::GraphProto &graph_proto) : graph_viewer_(gv), model_info_(model_info), graph_proto_(graph_proto) {} ModelInfo &model_info() { return model_info_; } const onnx::GraphProto &graph_proto() { return graph_proto_; } diff --git a/onnxruntime/python/onnxruntime_pybind_state.cc b/onnxruntime/python/onnxruntime_pybind_state.cc index 9a74b527ef6ee..357af596f55af 100644 --- a/onnxruntime/python/onnxruntime_pybind_state.cc +++ b/onnxruntime/python/onnxruntime_pybind_state.cc @@ -1141,7 +1141,7 @@ std::unique_ptr CreateExecutionProviderInstance( #endif } else if (type == kIreeExecutionProvider) { #if USE_IREE - const auto &it = provider_options_map.find(type); + const auto& it = provider_options_map.find(type); ProviderOptions iree_option_map = ProviderOptions{}; if (it != provider_options_map.end()) { iree_option_map = it->second;