ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::backend::acl_cl::Backend Class Reference

#include <Backend.h>

Collaboration diagram for onert::backend::acl_cl::Backend:

Public Member Functions

 Backend ()
 
std::shared_ptr< IConfigconfig () const override
 
std::unique_ptr< backend::BackendContextnewContext (ContextData &&data) const override
 
- Public Member Functions inherited from onert::backend::Backend
virtual ~Backend ()=default
 

Detailed Description

Definition at line 38 of file Backend.h.

Constructor & Destructor Documentation

◆ Backend()

onert::backend::acl_cl::Backend::Backend ( )
inline

Definition at line 41 of file Backend.h.

41: _config{std::make_shared<Config>()} {}

Member Function Documentation

◆ config()

std::shared_ptr< IConfig > onert::backend::acl_cl::Backend::config ( ) const
inlineoverridevirtual

Implements onert::backend::Backend.

Definition at line 43 of file Backend.h.

43{ return _config; }

◆ newContext()

std::unique_ptr< backend::BackendContext > onert::backend::acl_cl::Backend::newContext ( ContextData &&  data) const
inlineoverridevirtual

Implements onert::backend::Backend.

Definition at line 45 of file Backend.h.

46 {
47 const auto &graph = *data.graph;
48 const auto &operands = data.graph->operands();
49 const auto is_linear_executor = data.is_linear_executor;
50
51 auto context = std::make_unique<acl_cl::BackendContext>(this, std::move(data));
52 auto tm = createTensorManager(is_linear_executor);
53 auto tr = std::make_shared<acl_common::AclTensorRegistry<TensorManager>>(tm);
54 auto tb = std::make_shared<TensorBuilder>(operands, tm);
55 context->tensor_registry = tr;
56 context->tensor_builder = tb;
57 context->constant_initializer = std::make_shared<ConstantInitializer>(operands, tr);
58 context->kernel_gen = std::make_shared<KernelGenerator>(graph, tb, tr);
59 context->optimizer = std::make_shared<Optimizer>(context.get());
60 return context;
61 }
TensorManager * createTensorManager(bool is_linear_executor)

References onert::backend::acl_cl::createTensorManager().


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