#include <Backend.h>
Definition at line 41 of file Backend.h.
◆ Backend()
onert::backend::builtin::Backend::Backend |
( |
| ) |
|
|
inline |
Definition at line 44 of file Backend.h.
44: _config{std::make_shared<Config>()} {}
◆ config()
std::shared_ptr< IConfig > onert::backend::builtin::Backend::config |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ newContext() [1/2]
Implements onert::backend::train::ITrainableBackend.
Definition at line 78 of file Backend.h.
79 {
80 const auto &tgraph = *tdata.tgraph;
81 auto tr = std::make_shared<train::TensorRegistry>();
82
83 auto tdata_ptr = std::make_unique<backend::train::TrainableContextData>(std::move(tdata));
84 auto context = std::make_unique<train::BackendContext>(this, std::move(tdata_ptr), tr);
85
86 context->kernel_gen =
87 std::make_shared<train::KernelGenerator>(tgraph, tr, context->external_context());
88 return context;
89 }
◆ newContext() [2/2]
Implements onert::backend::Backend.
Definition at line 48 of file Backend.h.
49 {
50 auto context = std::make_unique<BackendContext>(this, std::move(data));
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 auto tr = std::make_shared<TensorRegistry>();
69 auto tb = std::make_shared<TensorBuilder>(tr);
70 context->tensor_registry = tr;
71 context->tensor_builder = tb;
72 context->kernel_gen = std::make_shared<KernelGenerator>(
73 *context->graph(), tb->dynamicTensorManager(), tr, context->external_context());
74 return context;
75 }
The documentation for this class was generated from the following file:
- runtime/onert/core/src/backend/builtin/Backend.h