21.05
|
#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 264 of file Tensor.hpp.
BaseTensor | ( | ) |
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 511 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 297 of file Tensor.hpp.
|
inline |
Definition at line 287 of file Tensor.hpp.
Referenced by CompareConstTensor(), and armnn::ConvertWeightTensorFromArmnnToAcl().
|
inline |
Definition at line 282 of file Tensor.hpp.
Referenced by BaseTensor< const void *>::BaseTensor(), BOOST_AUTO_TEST_CASE(), TestLayerVisitor::CheckConstTensors(), CheckTensor(), armnn::ConvertWeightTensorFromArmnnToAcl(), armnnSerializer::GetFlatBufferArgMinMaxFunction(), armnn::ReorderWeightChannelsForAcl(), LoadedNetwork::Schedule(), and LayerVerifierBase::VerifyConstTensors().
|
inline |
Definition at line 283 of file Tensor.hpp.
|
inline |
Definition at line 292 of file Tensor.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), TestLayerVisitor::CheckConstTensors(), CompareConstTensor(), armnnSerializer::GetFlatBufferArgMinMaxFunction(), LoadedNetwork::Schedule(), ScopedTensorHandle::ScopedTensorHandle(), and LayerVerifierBase::VerifyConstTensors().
|
inline |
Definition at line 289 of file Tensor.hpp.
Referenced by TestLayerVisitor::CheckConstTensors(), armnnSerializer::GetFlatBufferArgMinMaxFunction(), ScopedTensorHandle::ScopedTensorHandle(), and LayerVerifierBase::VerifyConstTensors().
|
inline |
|
inline |
Definition at line 290 of file Tensor.hpp.
Referenced by TestLayerVisitor::CheckConstTensors(), and CompareConstTensor().
|
inline |
Definition at line 284 of file Tensor.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), CompareConstTensor(), and armnn::ReorderWeightChannelsForAcl().
|
inline |
Definition at line 285 of file Tensor.hpp.
BaseTensor< MemoryType > & operator= | ( | const BaseTensor< MemoryType > & | ) |
|
protected |
Definition at line 299 of file Tensor.hpp.
Referenced by BaseTensor< const void *>::BaseTensor(), and BaseTensor< const void *>::operator=().