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