ONE - On-device Neural Engine
|
#include <TrainableBackendContext.h>
Public Member Functions | |
TrainableBackendContext (const ITrainableBackend *backend, std::unique_ptr< TrainableContextData > &&tdata, std::shared_ptr< ITensorRegistry > tensor_registry=nullptr) | |
virtual | ~TrainableBackendContext ()=default |
const ir::train::TrainableGraph * | trainable_graph () const |
const TrainableContextData * | data () const |
const ITrainableBackend * | backend () const |
const util::Set< ir::OperandIndex > & | external_operands () const |
const ir::OperandIndexMap< ir::Layout > & | operand_layouts () const |
std::shared_ptr< ITensorRegistry > | tensor_registry () |
virtual FunctionMap | gen ()=0 |
Protected Attributes | |
std::unique_ptr< TrainableContextData > | _tdata |
std::shared_ptr< ITensorRegistry > | _tensor_registry |
Definition at line 57 of file TrainableBackendContext.h.
|
inline |
Definition at line 60 of file TrainableBackendContext.h.
References _tdata.
|
virtualdefault |
|
inline |
Definition at line 73 of file TrainableBackendContext.h.
Referenced by CfgRunner.CfgRunner::run(), and CfgRunner.CfgRunner::set_backend().
|
inline |
Definition at line 71 of file TrainableBackendContext.h.
References _tdata.
Referenced by onert::backend::train::BackendContext::gen().
|
inline |
Definition at line 74 of file TrainableBackendContext.h.
References _tdata.
Referenced by onert::backend::train::BackendContext::gen(), onert::backend::builtin::train::BackendContext::gen(), and onert::backend::basic::train::genTensors().
|
pure virtual |
Implemented in onert::backend::train::BackendContext, and onert::backend::builtin::train::BackendContext.
|
inline |
|
inline |
Definition at line 77 of file TrainableBackendContext.h.
References _tensor_registry.
Referenced by onert::backend::train::BackendContext::gen(), and onert::backend::basic::train::genTensors().
|
inline |
Definition at line 69 of file TrainableBackendContext.h.
References _tdata.
Referenced by onert::backend::train::BackendContext::gen(), onert::backend::builtin::train::BackendContext::gen(), and onert::backend::basic::train::genTensors().
|
protected |
Definition at line 85 of file TrainableBackendContext.h.
Referenced by data(), external_operands(), onert::backend::train::BackendContext::gen(), onert::backend::builtin::train::BackendContext::gen(), operand_layouts(), trainable_graph(), and TrainableBackendContext().
|
protected |
Definition at line 88 of file TrainableBackendContext.h.
Referenced by tensor_registry().