24.02
|
#include <ClImportTensorHandle.hpp>
Public Member Functions | |
ClImportTensorHandle (const TensorInfo &tensorInfo, MemorySourceFlags importFlags) | |
ClImportTensorHandle (const TensorInfo &tensorInfo, DataLayout dataLayout, MemorySourceFlags importFlags) | |
arm_compute::CLTensor & | GetTensor () override |
arm_compute::CLTensor const & | GetTensor () const override |
virtual void | Allocate () override |
Indicate to the memory manager that this resource is no longer active. More... | |
virtual void | Manage () override |
Indicate to the memory manager that this resource is active. More... | |
virtual const void * | Map (bool blocking=true) const override |
Map the tensor data for access. More... | |
virtual void | Unmap () const override |
Unmap the tensor data. More... | |
virtual ITensorHandle * | GetParent () const override |
Get the parent tensor if this is a subtensor. More... | |
virtual arm_compute::DataType | GetDataType () const override |
virtual void | SetMemoryGroup (const std::shared_ptr< arm_compute::IMemoryGroup > &memoryGroup) override |
TensorShape | GetStrides () const override |
Get the strides for each dimension ordered from largest to smallest where the smallest value is the same as the size of a single element in the tensor. More... | |
TensorShape | GetShape () const override |
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest iterating dimension. More... | |
void | SetImportFlags (MemorySourceFlags importFlags) |
MemorySourceFlags | GetImportFlags () const override |
Get flags describing supported import sources. More... | |
virtual bool | Import (void *memory, MemorySource source) override |
Import externally allocated memory. More... | |
virtual bool | CanBeImported (void *, MemorySource source) override |
Implementations must determine if this memory block can be imported. More... | |
Public Member Functions inherited from ITensorHandle | |
virtual | ~ITensorHandle () |
void * | Map (bool blocking=true) |
Map the tensor data for access. More... | |
void | Unmap () |
Unmap the tensor data that was previously mapped with call to Map(). More... | |
virtual void | Unimport () |
Unimport externally allocated memory. More... | |
virtual std::shared_ptr< ITensorHandle > | DecorateTensorHandle (const TensorInfo &tensorInfo) |
Returns a decorated version of this TensorHandle allowing us to override the TensorInfo for it. More... | |
Definition at line 30 of file ClImportTensorHandle.hpp.
|
inline |
Definition at line 33 of file ClImportTensorHandle.hpp.
|
inline |
Definition at line 39 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Indicate to the memory manager that this resource is no longer active.
This is used to compute overlapping lifetimes of resources.
Implements ITensorHandle.
Definition at line 49 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Implementations must determine if this memory block can be imported.
This might be based on alignment or memory source type.
Reimplemented from ITensorHandle.
Definition at line 187 of file ClImportTensorHandle.hpp.
References armnn::Malloc.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 62 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Get flags describing supported import sources.
Reimplemented from ITensorHandle.
Definition at line 87 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Get the parent tensor if this is a subtensor.
Implements ITensorHandle.
Definition at line 60 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Get the number of elements for each dimension ordered from slowest iterating dimension to fastest iterating dimension.
Implements ITensorHandle.
Definition at line 77 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Get the strides for each dimension ordered from largest to smallest where the smallest value is the same as the size of a single element in the tensor.
Implements ITensorHandle.
Definition at line 72 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 48 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 47 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Import externally allocated memory.
memory | base address of the memory being imported. |
source | source of the allocation for the memory being imported. |
Reimplemented from ITensorHandle.
Definition at line 92 of file ClImportTensorHandle.hpp.
References armnn::DmaBuf, armnn::DmaBufProtected, armnn::Gralloc, and armnn::Malloc.
|
inlineoverridevirtual |
Indicate to the memory manager that this resource is active.
This is used to compute overlapping lifetimes of resources.
Implements ITensorHandle.
Definition at line 50 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Map the tensor data for access.
blocking | hint to block the calling thread until all other accesses are complete. (backend dependent) |
Implements ITensorHandle.
Definition at line 52 of file ClImportTensorHandle.hpp.
References armnn::IgnoreUnused().
|
inline |
Definition at line 82 of file ClImportTensorHandle.hpp.
|
inlineoverridevirtual |
Implements IClTensorHandle.
Definition at line 67 of file ClImportTensorHandle.hpp.
References armnn::IgnoreUnused().
|
inlineoverridevirtual |
Unmap the tensor data.
Implements ITensorHandle.
Definition at line 58 of file ClImportTensorHandle.hpp.