Make classes IKernelTypeStrResolver and IKernelLookup have protected destructors. (#13059)

This commit is contained in:
Edward Chen 2022-09-23 09:16:45 -07:00 committed by GitHub
parent 2ef1f8b93e
commit 5f611b63a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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;
};
/**

View file

@ -51,6 +51,9 @@ class IKernelTypeStrResolver {
*/
virtual Status ResolveKernelTypeStr(const Node& node, std::string_view kernel_type_str,
gsl::span<const ArgTypeAndIndex>& resolved_args) const = 0;
protected:
~IKernelTypeStrResolver() = default;
};
/**