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

#include <Backend.h>

Collaboration diagram for onert::backend::trix::Backend:

Public Member Functions

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

Detailed Description

Definition at line 35 of file Backend.h.

Constructor & Destructor Documentation

◆ Backend()

onert::backend::trix::Backend::Backend ( )
inline

Definition at line 38 of file Backend.h.

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

Member Function Documentation

◆ config()

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

Implements onert::backend::Backend.

Definition at line 40 of file Backend.h.

40{ return _config; }

◆ newContext()

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

Implements onert::backend::Backend.

Definition at line 42 of file Backend.h.

43 {
44 auto &graph = *data.graph;
45 auto context = std::make_unique<BackendContext>(this, std::move(data));
46 auto tr = std::make_shared<basic::TensorRegistry>();
47 auto tb = std::make_shared<TensorBuilder>(tr);
48 context->tensor_registry = tr;
49 context->tensor_builder = tb;
50 context->kernel_gen = std::make_shared<KernelGenerator>(graph, tb, tr, context->dev_context());
51 return context;
52 }

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