ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci_interpreter::KernelBuilderRegistry Class Reference

Registry of kernel builders. More...

Public Types

using KernelBuilderFunc = std::unique_ptr< Kernel >(const luci::CircleNode *, KernelBuilderHelper &)
 

Public Member Functions

 KernelBuilderRegistry ()
 
KernelBuilderFuncget_kernel_builder_func (luci::CircleOpcode opcode) const
 

Detailed Description

Registry of kernel builders.

This class contains mapping from Opcodes to kernel builder functions

Definition at line 74 of file KernelBuilder.cpp.

Member Typedef Documentation

◆ KernelBuilderFunc

Constructor & Destructor Documentation

◆ KernelBuilderRegistry()

luci_interpreter::KernelBuilderRegistry::KernelBuilderRegistry ( )
inline

Definition at line 80 of file KernelBuilder.cpp.

80 : _operator_builders(size_t(BuilderId::Size), nullptr)
81 {
82#define REGISTER_KERNEL(name) \
83 register_kernel_builder(BuilderId::Circle##name, build_kernel_Circle##name);
84
85#include "KernelsToBuild.lst"
86
87#undef REGISTER_KERNEL
88 }

Member Function Documentation

◆ get_kernel_builder_func()

KernelBuilderFunc * luci_interpreter::KernelBuilderRegistry::get_kernel_builder_func ( luci::CircleOpcode  opcode) const
inline

Definition at line 90 of file KernelBuilder.cpp.

91 {
92 return _operator_builders.at(size_t(opcode));
93 }

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