10 namespace onnxruntime {
15 class IKernelTypeStrResolver;
35 const IKernelTypeStrResolver& kernel_type_str_resolver,
68 const IKernelTypeStrResolver& kernel_type_str_resolver) {
74 bool IsEmpty()
const {
return kernel_creator_fn_map_.empty(); }
78 return kernel_creator_fn_map_;
84 const IKernelTypeStrResolver* kernel_type_str_resolver,
106 static bool VerifyKernelDef(
const Node& node,
const KernelDef& kernel_def,
107 const IKernelTypeStrResolver* kernel_type_str_resolver,
114 key.append(1,
' ').append(domain.empty() ?
kOnnxDomainAlias : domain).append(1,
' ').append(provider);
118 static std::string GetMapKey(
const KernelDef& kernel_def) {
119 return GetMapKey(kernel_def.OpName(), kernel_def.Domain(), kernel_def.Provider());
const std::string & ProviderType
constexpr const char * kOnnxDomainAlias
std::multimap< std::string, KernelCreateInfo > KernelCreateMap
GLsizei const GLchar *const * string
static bool HasImplementationOf(const KernelRegistry &r, const Node &node, ProviderType exec_provider, const IKernelTypeStrResolver &kernel_type_str_resolver)
basic_string_view< char > string_view
Status TryFindKernel(const Node &node, ProviderType exec_provider, const IKernelTypeStrResolver &kernel_type_str_resolver, const KernelCreateInfo **out) const
std::vector< std::pair< std::string, HashValue >> KernelDefHashes
InlinedHashMap< std::string, MLDataType > TypeConstraintMap
Status Register(KernelDefBuilder &kernel_def_builder, const KernelCreateFn &kernel_creator)
std::function< Status(FuncManager &func_mgr, const OpKernelInfo &info, std::unique_ptr< OpKernel > &out)> KernelCreateFn
const KernelCreateMap & GetKernelCreateMap() const
GT_API const UT_StringHolder version
GT_API const UT_StringHolder st