diff --git a/include/onnxruntime/core/framework/execution_provider.h b/include/onnxruntime/core/framework/execution_provider.h index 57e9d5e564..708cd50ce4 100644 --- a/include/onnxruntime/core/framework/execution_provider.h +++ b/include/onnxruntime/core/framework/execution_provider.h @@ -99,6 +99,9 @@ class IExecutionProvider { * The return value is non-null if and only if a matching kernel was found. */ virtual const KernelCreateInfo* LookUpKernel(const Node& node) const = 0; + + protected: + ~IKernelLookup() = default; }; /** diff --git a/onnxruntime/core/framework/kernel_type_str_resolver.h b/onnxruntime/core/framework/kernel_type_str_resolver.h index 0a95faf0b4..39c4eff3a5 100644 --- a/onnxruntime/core/framework/kernel_type_str_resolver.h +++ b/onnxruntime/core/framework/kernel_type_str_resolver.h @@ -51,6 +51,9 @@ class IKernelTypeStrResolver { */ virtual Status ResolveKernelTypeStr(const Node& node, std::string_view kernel_type_str, gsl::span& resolved_args) const = 0; + + protected: + ~IKernelTypeStrResolver() = default; }; /**