25.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.
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 534 of file Tensor.cpp.
References armnn::info.
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.
References TensorInfo::GetDataType().
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::ConvertWeightTensorFromArmnnToAcl(), armnn::CopyToOutputTensor(), armnn::ReorderWeightChannelsForAcl(), and FuseBatchNorm< ConvLayer, ArmnnType, T >::Run().
|
inline |
Definition at line 307 of file Tensor.hpp.
References BaseTensor< MemoryType >::m_MemoryArea.
Referenced by armnn::CopyToOutputTensor(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), and ScopedTensorHandle::ScopedTensorHandle().
|
inline |
Definition at line 304 of file Tensor.hpp.
References TensorInfo::GetNumBytes().
Referenced by ScopedTensorHandle::ScopedTensorHandle().
|
inline |
|
inline |
Definition at line 305 of file Tensor.hpp.
References TensorInfo::GetNumElements().
Referenced by FuseBatchNorm< ConvLayer, ArmnnType, T >::Run().
|
inline |
|
inline |
Definition at line 299 of file Tensor.hpp.
References TensorInfo::GetShape().
Referenced by armnn::ReorderWeightChannelsForAcl().
BaseTensor< MemoryType > & operator= | ( | const BaseTensor< MemoryType > & | ) |
Tensors are copyable.
Definition at line 548 of file Tensor.cpp.
References BaseTensor< MemoryType >::m_MemoryArea.
|
protected |
Definition at line 314 of file Tensor.hpp.
Referenced by BaseTensor< MemoryType >::GetMemoryArea(), and BaseTensor< MemoryType >::operator=().