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;