20.08
|
#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 248 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 512 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 281 of file Tensor.hpp.
|
inline |
Definition at line 271 of file Tensor.hpp.
Referenced by armnn::ConvertWeightTensorFromArmnnToAcl(), StaticRangeVisitor::VisitConstantLayer(), and DynamicQuantizationVisitor::VisitConstantLayer().
|
inline |
Definition at line 266 of file Tensor.hpp.
Referenced by BaseTensor< const void *>::BaseTensor(), BOOST_AUTO_TEST_CASE(), armnn::BOOST_AUTO_TEST_CASE(), TestLayerVisitor::CheckConstTensors(), CheckTensor(), armnn::ConvertWeightTensorFromArmnnToAcl(), armnn::CreateQuantizedConst(), QuantizerVisitor::QuantizerVisitor(), armnn::ReorderWeightChannelsForAcl(), and SerializerVisitor::VisitQuantizedLstmLayer().
|
inline |
Definition at line 267 of file Tensor.hpp.
|
inline |
Definition at line 276 of file Tensor.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), TestLayerVisitor::CheckConstTensors(), armnn::CreateQuantizedConst(), ScopedCpuTensorHandle::ScopedCpuTensorHandle(), StaticRangeVisitor::VisitConstantLayer(), DynamicQuantizationVisitor::VisitConstantLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().
|
inline |
Definition at line 273 of file Tensor.hpp.
Referenced by TestLayerVisitor::CheckConstTensors(), ScopedCpuTensorHandle::ScopedCpuTensorHandle(), and SerializerVisitor::VisitQuantizedLstmLayer().
|
inline |
|
inline |
Definition at line 274 of file Tensor.hpp.
Referenced by TestLayerVisitor::CheckConstTensors(), StaticRangeVisitor::VisitConstantLayer(), and DynamicQuantizationVisitor::VisitConstantLayer().
|
inline |
Definition at line 268 of file Tensor.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), armnnTfParser::CheckPaddingTensor(), armnnTfParser::ConvertTfTensorDataType(), armnnTfParser::OutputShapeOfSqueeze(), and armnn::ReorderWeightChannelsForAcl().
|
inline |
Definition at line 269 of file Tensor.hpp.
BaseTensor< MemoryType > & operator= | ( | const BaseTensor< MemoryType > & | ) |
|
protected |
Definition at line 283 of file Tensor.hpp.
Referenced by BaseTensor< const void *>::BaseTensor(), and BaseTensor< const void *>::operator=().