ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::api::KernelBuilder Class Reference
Collaboration diagram for onert::api::KernelBuilder:

Public Member Functions

 KernelBuilder (CustomKernelRegistry *registry)
 
std::unique_ptr< exec::IFunctionbuildKernel (const std::string &id, backend::custom::CustomKernelConfigParams &&params) const override
 
- Public Member Functions inherited from onert::backend::custom::IKernelBuilder
virtual ~IKernelBuilder ()=default
 

Detailed Description

Definition at line 26 of file CustomKernelRegistry.cc.

Constructor & Destructor Documentation

◆ KernelBuilder()

onert::api::KernelBuilder::KernelBuilder ( CustomKernelRegistry registry)
inline

Definition at line 29 of file CustomKernelRegistry.cc.

29: _registry(registry) {}

Member Function Documentation

◆ buildKernel()

std::unique_ptr< exec::IFunction > onert::api::KernelBuilder::buildKernel ( const std::string &  id,
backend::custom::CustomKernelConfigParams &&  params 
) const
inlineoverridevirtual

Implements onert::backend::custom::IKernelBuilder.

Definition at line 32 of file CustomKernelRegistry.cc.

34 {
35 auto kernel = _registry->buildKernelForOp(id);
36 kernel->configure(std::move(params));
37
38 return kernel;
39 }
std::unique_ptr< CustomKernel > buildKernelForOp(const std::string &id)

References onert::api::CustomKernelRegistry::buildKernelForOp().


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