ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::backend::ITensorRegistry Struct Referenceabstract

#include <ITensorRegistry.h>

Public Member Functions

virtual ~ITensorRegistry ()=default
 Deconstruct itself.
 
virtual ITensorgetITensor (const ir::OperandIndex &)=0
 Returns pointer of ITensor among native and migrant tensors.
 
virtual ITensorgetNativeITensor (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.
 

Detailed Description

Definition at line 31 of file ITensorRegistry.h.

Constructor & Destructor Documentation

◆ ~ITensorRegistry()

virtual onert::backend::ITensorRegistry::~ITensorRegistry ( )
virtualdefault

Deconstruct itself.

Member Function Documentation

◆ getITensor()

virtual ITensor * onert::backend::ITensorRegistry::getITensor ( const ir::OperandIndex )
pure virtual

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

Note
Return tensor cannot be used longer than dynamic tensor manager

Implemented in onert::backend::acl_common::AclTensorRegistry< T_AclTensorManager >, onert::backend::PortableTensorRegistryTemplate< T_Tensor >, onert::backend::builtin::TensorRegistry, onert::backend::train::PortableTensorRegistryTemplate< Tensor, TrainableTensor, BackPropTensor, GradientTensor >, and onert::backend::builtin::train::TensorRegistry.

Referenced by onert::exec::MinMaxRecorder::handleSubgraphBegin().

◆ getNativeITensor()

virtual ITensor * onert::backend::ITensorRegistry::getNativeITensor ( const ir::OperandIndex )
pure virtual

◆ setMigrantTensor()

virtual bool onert::backend::ITensorRegistry::setMigrantTensor ( const ir::OperandIndex ,
IPortableTensor  
)
inlinevirtual

The documentation for this struct was generated from the following file: