#include <kernel_registry.h>
|
| KernelRegistry ()=default |
|
Status | Register (KernelDefBuilder &kernel_def_builder, const KernelCreateFn &kernel_creator) |
|
Status | Register (KernelCreateInfo &&create_info) |
|
Status | TryFindKernel (const Node &node, ProviderType exec_provider, const IKernelTypeStrResolver &kernel_type_str_resolver, const KernelCreateInfo **out) const |
|
Status | TryFindKernel (const Node &node, ProviderType exec_provider, const TypeConstraintMap &type_constraints, const KernelCreateInfo **out) const |
|
Status | TryFindKernel (ProviderType exec_provider, std::string_view op_type, std::string_view domain, int version, const KernelRegistry::TypeConstraintMap &type_constraints, const KernelCreateInfo **out) const |
| Find out whether a kernel is registered, without a node. This should be useful in graph optimizers, to check whether the node it is about to generate, is supported or not. More...
|
|
bool | IsEmpty () const |
|
const KernelCreateMap & | GetKernelCreateMap () const |
|
Each provider has a KernelRegistry. Often, the KernelRegistry only belongs to that specific provider.
Definition at line 20 of file kernel_registry.h.
onnxruntime::KernelRegistry::KernelRegistry |
( |
| ) |
|
|
default |
const KernelCreateMap& onnxruntime::KernelRegistry::GetKernelCreateMap |
( |
| ) |
const |
|
inline |
static bool onnxruntime::KernelRegistry::HasImplementationOf |
( |
const KernelRegistry & |
r, |
|
|
const Node & |
node, |
|
|
ProviderType |
exec_provider, |
|
|
const IKernelTypeStrResolver & |
kernel_type_str_resolver |
|
) |
| |
|
inlinestatic |
bool onnxruntime::KernelRegistry::IsEmpty |
( |
| ) |
const |
|
inline |
Status onnxruntime::KernelRegistry::TryFindKernel |
( |
const Node & |
node, |
|
|
ProviderType |
exec_provider, |
|
|
const IKernelTypeStrResolver & |
kernel_type_str_resolver, |
|
|
const KernelCreateInfo ** |
out |
|
) |
| const |
Find out whether a kernel is registered, without a node. This should be useful in graph optimizers, to check whether the node it is about to generate, is supported or not.
- Parameters
-
exec_provider | |
op_type | |
domain | |
version | |
type_constraints | |
out | |
- Returns
The documentation for this class was generated from the following file: