From 11f3c5dea232ee213f1c56cf80e6ac3ee055f882 Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Sat, 27 Jan 2024 08:25:18 +1000 Subject: [PATCH] Fix ifdef Try inlined hashset --- .../core/providers/coreml/builders/impl/conv_op_builder.cc | 2 +- onnxruntime/core/providers/coreml/coreml_execution_provider.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/onnxruntime/core/providers/coreml/builders/impl/conv_op_builder.cc b/onnxruntime/core/providers/coreml/builders/impl/conv_op_builder.cc index 41bb4b63a5883..8b9564310e61e 100644 --- a/onnxruntime/core/providers/coreml/builders/impl/conv_op_builder.cc +++ b/onnxruntime/core/providers/coreml/builders/impl/conv_op_builder.cc @@ -11,10 +11,10 @@ #include "core/providers/coreml/builders/impl/builder_utils.h" #include "core/providers/coreml/builders/model_builder.h" #include "core/providers/coreml/shape_utils.h" -#endif using namespace CoreML::Specification; using namespace CoreML::Specification::MILSpec; +#endif namespace onnxruntime { namespace coreml { diff --git a/onnxruntime/core/providers/coreml/coreml_execution_provider.h b/onnxruntime/core/providers/coreml/coreml_execution_provider.h index 59eb5375bf379..d91a00523aa16 100644 --- a/onnxruntime/core/providers/coreml/coreml_execution_provider.h +++ b/onnxruntime/core/providers/coreml/coreml_execution_provider.h @@ -3,6 +3,7 @@ #pragma once +#include "core/common/inlined_containers.h" #include "core/framework/execution_provider.h" #include "core/providers/coreml/coreml_provider_factory.h" @@ -33,7 +34,7 @@ class CoreMLExecutionProvider : public IExecutionProvider { const int32_t coreml_version_; // > #ifdef __APPLE__OR__TEST__ - std::unordered_map> coreml_models_; + InlinedHashMap> coreml_models_; #endif }; } // namespace onnxruntime