ONE - On-device Neural Engine
|
#include <ITensorRegistry.h>
Public Member Functions | |
virtual ITensor * | getBackPropITensor (const ir::OperandIndex &)=0 |
Returns pointer of ITensor for back propatation. | |
virtual ITensor * | getGradientITensor (const ir::OperandIndex &)=0 |
Returns pointer of ITensor for gradient. | |
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. | |
virtual ITensor * | getITensor (const ir::OperandIndex &)=0 |
Returns pointer of ITensor among native and migrant tensors. | |
virtual ITensor * | getNativeITensor (const ir::OperandIndex &)=0 |
Returns pointer of ITensor among native tensors. | |
virtual bool | setMigrantTensor (const ir::OperandIndex &, IPortableTensor *) |
Set the Migrant Tensor which are from other backends. | |
Definition at line 30 of file ITensorRegistry.h.
|
pure virtual |
Returns pointer of ITensor for back propatation.
Implemented in onert::backend::train::PortableTensorRegistryTemplate< Tensor, TrainableTensor, BackPropTensor, GradientTensor >, and onert::backend::builtin::train::TensorRegistry.
|
pure virtual |
Returns pointer of ITensor for gradient.
Implemented in onert::backend::train::PortableTensorRegistryTemplate< Tensor, TrainableTensor, BackPropTensor, GradientTensor >, and onert::backend::builtin::train::TensorRegistry.
|
pure virtual |
Iterate ITrainableTensors with fn.
fn | function to be called with OperandIndex and a pointer to ITrainableTensor |
Implemented in onert::backend::train::PortableTensorRegistryTemplate< Tensor, TrainableTensor, BackPropTensor, GradientTensor >.