20.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 149 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 306 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 182 of file Tensor.hpp.
|
inline |
Definition at line 172 of file Tensor.hpp.
Referenced by armnn::ConvertWeightTensorFromArmnnToAcl(), DynamicQuantizationVisitor::VisitConstantLayer(), and StaticRangeVisitor::VisitConstantLayer().
|
inline |
Definition at line 167 of file Tensor.hpp.
Referenced by BaseTensor< const void *>::BaseTensor(), armnn::BOOST_AUTO_TEST_CASE(), TestLayerVisitor::CheckConstTensors(), CheckTensor(), armnn::ConvertWeightTensorFromArmnnToAcl(), armnn::CreateQuantizedConst(), QuantizerVisitor::QuantizerVisitor(), armnn::ReorderWeightChannelsForAcl(), and SerializerVisitor::VisitQuantizedLstmLayer().
|
inline |
Definition at line 168 of file Tensor.hpp.
|
inline |
Definition at line 177 of file Tensor.hpp.
Referenced by TestLayerVisitor::CheckConstTensors(), armnn::CreateQuantizedConst(), ScopedCpuTensorHandle::ScopedCpuTensorHandle(), DynamicQuantizationVisitor::VisitConstantLayer(), StaticRangeVisitor::VisitConstantLayer(), and SerializerVisitor::VisitQuantizedLstmLayer().
|
inline |
Definition at line 174 of file Tensor.hpp.
Referenced by TestLayerVisitor::CheckConstTensors(), ScopedCpuTensorHandle::ScopedCpuTensorHandle(), and SerializerVisitor::VisitQuantizedLstmLayer().
|
inline |
|
inline |
Definition at line 175 of file Tensor.hpp.
Referenced by TestLayerVisitor::CheckConstTensors(), DynamicQuantizationVisitor::VisitConstantLayer(), and StaticRangeVisitor::VisitConstantLayer().
|
inline |
Definition at line 169 of file Tensor.hpp.
Referenced by armnnTfParser::CheckPaddingTensor(), armnnTfParser::ConvertTfTensorDataType(), armnnTfParser::OutputShapeOfSqueeze(), and armnn::ReorderWeightChannelsForAcl().
|
inline |
Definition at line 170 of file Tensor.hpp.
BaseTensor< MemoryType > & operator= | ( | const BaseTensor< MemoryType > & | ) |
|
protected |
Definition at line 184 of file Tensor.hpp.
Referenced by BaseTensor< const void *>::BaseTensor(), and BaseTensor< const void *>::operator=().