ONE - On-device Neural Engine
|
#include <TensorRegistry.h>
Public Member Functions | |
TensorRegistry () | |
ITensor * | getITensor (const ir::OperandIndex &index) override |
Returns pointer of ITensor among native and migrant tensors. | |
ITensor * | getNativeITensor (const ir::OperandIndex &index) override |
Returns pointer of ITensor among native tensors. | |
IPortableTensor * | getPortableTensor (const ir::OperandIndex &index) |
IOTensor * | getNativeIOTensor (const ir::OperandIndex &index) |
ITensor * | getBackPropITensor (const ir::OperandIndex &index) override |
Returns pointer of ITensor for back propatation. | |
ITensor * | getGradientITensor (const ir::OperandIndex &index) override |
Returns pointer of ITensor for gradient. | |
BackPropTensor * | getBackPropTensor (const ir::OperandIndex &index) |
bool | setMigrantTensor (const ir::OperandIndex &index, IPortableTensor *tensor) override |
Set the Migrant Tensor which are from other backends. | |
void | iterateTrainableTensors (const std::function< void(const ir::OperandIndex &, const backend::train::ITrainableTensor *)> &) const override |
void | setBackPropTensor (const ir::OperandIndex &index, std::unique_ptr< BackPropTensor > tensor) |
void | setGradientTensor (const ir::OperandIndex &index, std::unique_ptr< GradientTensor > tensor) |
void | setNativeIOTensor (ir::OperandIndex index, std::unique_ptr< IOTensor > &&tensor) |
const ir::OperandIndexMap< std::unique_ptr< IOTensor > > & | native_io_tensors () |
std::shared_ptr< BaseTensorRegistry > | base_reg () |
Public Member Functions inherited from onert::backend::train::ITensorRegistry | |
virtual void | iterateTrainableTensors (const std::function< void(const ir::OperandIndex &, const train::ITrainableTensor *)> &) const =0 |
Iterate ITrainableTensors with fn. | |
Public Member Functions inherited from onert::backend::ITensorRegistry | |
virtual | ~ITensorRegistry ()=default |
Deconstruct itself. | |
Definition at line 39 of file TensorRegistry.h.
|
inline |
Definition at line 42 of file TensorRegistry.h.
|
inline |
Definition at line 128 of file TensorRegistry.h.
|
inlineoverridevirtual |
Returns pointer of ITensor for back propatation.
Implements onert::backend::train::ITensorRegistry.
Definition at line 76 of file TensorRegistry.h.
|
inline |
Definition at line 86 of file TensorRegistry.h.
|
inlineoverridevirtual |
Returns pointer of ITensor for gradient.
Implements onert::backend::train::ITensorRegistry.
Definition at line 81 of file TensorRegistry.h.
|
inlineoverridevirtual |
Returns pointer of ITensor among native and migrant tensors.
Native Tensor is a tensor that is managed by this backend Migrant Tensor is a tensor that is imported from another backend
Implements onert::backend::ITensorRegistry.
Definition at line 44 of file TensorRegistry.h.
References getNativeIOTensor().
Referenced by setMigrantTensor(), and setNativeIOTensor().
|
inline |
Definition at line 68 of file TensorRegistry.h.
Referenced by getITensor(), getNativeITensor(), and getPortableTensor().
|
inlineoverridevirtual |
Returns pointer of ITensor among native tensors.
Unlike getITensor
, this function only searches from native tensors
Implements onert::backend::ITensorRegistry.
Definition at line 52 of file TensorRegistry.h.
References getNativeIOTensor().
|
inline |
Definition at line 60 of file TensorRegistry.h.
References getNativeIOTensor().
|
inlineoverride |
Definition at line 99 of file TensorRegistry.h.
|
inline |
Definition at line 124 of file TensorRegistry.h.
|
inline |
Definition at line 107 of file TensorRegistry.h.
|
inline |
Definition at line 112 of file TensorRegistry.h.
|
inlineoverridevirtual |
Set the Migrant Tensor which are from other backends.
Reimplemented from onert::backend::ITensorRegistry.
Definition at line 91 of file TensorRegistry.h.
References getITensor().
|
inline |
Definition at line 117 of file TensorRegistry.h.
References getITensor().