ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert_micro::import::KernelBuiltinConfigureRegistry Class Reference

#include <OMKernelConfigureBuilder.h>

Public Member Functions

constexpr KernelBuiltinConfigureRegistry ()
 
OMStatus getKernelConfigureFunc (core::OMBuilderID builderID, KernelConfigureFunc **configure_func) const
 

Detailed Description

Definition at line 45 of file OMKernelConfigureBuilder.h.

Constructor & Destructor Documentation

◆ KernelBuiltinConfigureRegistry()

constexpr onert_micro::import::KernelBuiltinConfigureRegistry::KernelBuiltinConfigureRegistry ( )
inlineconstexpr

Definition at line 48 of file OMKernelConfigureBuilder.h.

48 : _operator_configure()
49 {
50#define REGISTER_KERNEL(builtin_operator, name) \
51 registerKernelConfigure(core::OMBuilderID::BuiltinOperator_##builtin_operator, \
52 configure_kernel_Circle##name);
53
54#include "KernelsToBuild.lst"
55
56#undef REGISTER_KERNEL
57 }

Member Function Documentation

◆ getKernelConfigureFunc()

OMStatus onert_micro::import::KernelBuiltinConfigureRegistry::getKernelConfigureFunc ( core::OMBuilderID  builderID,
KernelConfigureFunc **  configure_func 
) const
inline

Definition at line 60 of file OMKernelConfigureBuilder.h.

62 {
63 const auto builder_id_opcode = size_t(builderID);
64 assert(builder_id_opcode < size_t(core::OMBuilderID::BuiltinOperatorsSize));
65 if (builder_id_opcode >= size_t(core::OMBuilderID::BuiltinOperatorsSize))
66 {
67 *configure_func = nullptr;
68 return UnknownError;
69 }
70 *configure_func = _operator_configure[builder_id_opcode];
71 return Ok;
72 }

References onert_micro::core::BuiltinOperatorsSize, onert_micro::Ok, and onert_micro::UnknownError.

Referenced by onert_micro::import::OMKernelConfiguration::configureKernels().


The documentation for this class was generated from the following file: