From 517fff0a392f0316da64b9351deac7b7fb9c05ee Mon Sep 17 00:00:00 2001 From: Guoyu Wang <62914304+gwang-msft@users.noreply.github.com> Date: Tue, 9 Nov 2021 17:21:42 -0800 Subject: [PATCH] Add opset 15 support for NNAPI/CoreML EPs (#9711) --- .../core/providers/coreml/builders/impl/base_op_builder.h | 4 ++-- .../nnapi/nnapi_builtin/builders/op_support_checker.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/onnxruntime/core/providers/coreml/builders/impl/base_op_builder.h b/onnxruntime/core/providers/coreml/builders/impl/base_op_builder.h index 2bf55dbb52..e8ec01f34c 100644 --- a/onnxruntime/core/providers/coreml/builders/impl/base_op_builder.h +++ b/onnxruntime/core/providers/coreml/builders/impl/base_op_builder.h @@ -15,7 +15,7 @@ class BaseOpBuilder : public IOpBuilder { virtual ~BaseOpBuilder() = default; // Add operator related - + #ifdef __APPLE__ public: virtual void AddInitializersToSkip(ModelBuilder& /* model_builder */, const Node& /* node */) const override {} @@ -46,7 +46,7 @@ class BaseOpBuilder : public IOpBuilder { virtual bool HasSupportedInputsImpl(const Node& node, const logging::Logger& logger) const; virtual int GetMinSupportedOpSet(const Node& /* node */) const { return 1; } - virtual int GetMaxSupportedOpSet(const Node& /* node */) const { return 14; } + virtual int GetMaxSupportedOpSet(const Node& /* node */) const { return 15; } private: bool HasSupportedOpSet(const Node& node, const logging::Logger& logger) const; diff --git a/onnxruntime/core/providers/nnapi/nnapi_builtin/builders/op_support_checker.cc b/onnxruntime/core/providers/nnapi/nnapi_builtin/builders/op_support_checker.cc index 8e02e75f68..1486cf60cf 100644 --- a/onnxruntime/core/providers/nnapi/nnapi_builtin/builders/op_support_checker.cc +++ b/onnxruntime/core/providers/nnapi/nnapi_builtin/builders/op_support_checker.cc @@ -86,7 +86,7 @@ class BaseOpSupportChecker : public IOpSupportChecker { virtual bool HasSupportedInputsImpl(const Node& node) const; virtual int GetMinSupportedOpSet(const Node& /* node */) const { return 1; } - virtual int GetMaxSupportedOpSet(const Node& /* node */) const { return 14; } + virtual int GetMaxSupportedOpSet(const Node& /* node */) const { return 15; } private: bool HasSupportedOpSet(const Node& node) const;