|
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 33 of file TensorRegistry.h.
|
inline |
Definition at line 36 of file TensorRegistry.h.
|
inline |
Definition at line 122 of file TensorRegistry.h.
|
inlineoverridevirtual |
Returns pointer of ITensor for back propatation.
Implements onert::backend::train::ITensorRegistry.
Definition at line 70 of file TensorRegistry.h.
|
inline |
Definition at line 80 of file TensorRegistry.h.
|
inlineoverridevirtual |
Returns pointer of ITensor for gradient.
Implements onert::backend::train::ITensorRegistry.
Definition at line 75 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 38 of file TensorRegistry.h.
References getNativeIOTensor().
Referenced by setMigrantTensor(), and setNativeIOTensor().
|
inline |
Definition at line 62 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 46 of file TensorRegistry.h.
References getNativeIOTensor().
|
inline |
Definition at line 54 of file TensorRegistry.h.
References getNativeIOTensor().
|
inlineoverride |
Definition at line 93 of file TensorRegistry.h.
|
inline |
Definition at line 118 of file TensorRegistry.h.
|
inline |
Definition at line 101 of file TensorRegistry.h.
|
inline |
Definition at line 106 of file TensorRegistry.h.
|
inlineoverridevirtual |
Set the Migrant Tensor which are from other backends.
Reimplemented from onert::backend::ITensorRegistry.
Definition at line 85 of file TensorRegistry.h.
References getITensor().
|
inline |
Definition at line 111 of file TensorRegistry.h.
References getITensor().