24.02
|
#include <Tensor.hpp>
Public Member Functions | |
BaseTensor () | |
Empty (invalid) constructor. More... | |
BaseTensor (const TensorInfo &info, MemoryType memoryArea) | |
Constructor from a raw memory pointer. More... | |
BaseTensor (const BaseTensor &other) | |
Tensors are copyable. More... | |
BaseTensor & | operator= (const BaseTensor &) |
Tensors are copyable. More... | |
const TensorInfo & | GetInfo () const |
TensorInfo & | GetInfo () |
const TensorShape & | GetShape () const |
TensorShape & | GetShape () |
DataType | GetDataType () const |
unsigned int | GetNumDimensions () const |
unsigned int | GetNumBytes () const |
unsigned int | GetNumElements () const |
MemoryType | GetMemoryArea () const |
Protected Member Functions | |
~BaseTensor () | |
Protected destructor to stop users from making these (could still new one on the heap and then leak it...) More... | |
Protected Attributes | |
MemoryType | m_MemoryArea |
Definition at line 279 of file Tensor.hpp.
Empty (invalid) constructor.
Definition at line 524 of file Tensor.cpp.
BaseTensor | ( | const TensorInfo & | info, |
MemoryType | memoryArea | ||
) |
Constructor from a raw memory pointer.
memoryArea | - Region of CPU-addressable memory where tensor data will be stored. Must be valid while workloads are on the fly. Tensor instances do not claim ownership of referenced memory regions, that is, no attempt will be made by ArmNN to free these memory regions automatically. |
Definition at line 530 of file Tensor.cpp.
BaseTensor | ( | const BaseTensor< MemoryType > & | other | ) |
Tensors are copyable.
|
inlineprotected |
Protected destructor to stop users from making these (could still new one on the heap and then leak it...)
Definition at line 312 of file Tensor.hpp.
|
inline |
Definition at line 302 of file Tensor.hpp.
Referenced by armnn::ConvertWeightTensorFromArmnnToAcl().
|
inline |
Definition at line 298 of file Tensor.hpp.
|
inline |
Definition at line 297 of file Tensor.hpp.
Referenced by armnn_driver::ConvertToLayerInputHandle(), armnn::ConvertWeightTensorFromArmnnToAcl(), armnn::CopyToOutputTensor(), ArmnnPreparedModel::execute(), armnn::ReorderWeightChannelsForAcl(), and FuseBatchNorm< ConvLayer, ArmnnType, T >::Run().
|
inline |
Definition at line 307 of file Tensor.hpp.
Referenced by armnn::CopyToOutputTensor(), ConstTensorPin::IsValid(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), and ScopedTensorHandle::ScopedTensorHandle().
|
inline |
|
inline |
Definition at line 303 of file Tensor.hpp.
|
inline |
Definition at line 305 of file Tensor.hpp.
Referenced by ConstTensorPin::GetConstTensorPtr(), and FuseBatchNorm< ConvLayer, ArmnnType, T >::Run().
|
inline |
Definition at line 300 of file Tensor.hpp.
|
inline |
BaseTensor< MemoryType > & operator= | ( | const BaseTensor< MemoryType > & | ) |
Tensors are copyable.
Definition at line 544 of file Tensor.cpp.
|
protected |
Definition at line 314 of file Tensor.hpp.
Referenced by BaseTensor< void * >::GetMemoryArea(), and BaseTensor< void * >::operator=().