20.11
|
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store. More...
#include <Tensor.hpp>
Public Member Functions | |
ConstTensor () | |
ConstTensor (const Tensor &other) | |
Can be implicitly constructed from non-const Tensor. More... | |
template<template< typename, typename... > class ContainerType, typename T , typename... ContainerArgs> | |
ConstTensor (const TensorInfo &info, const ContainerType< T, ContainerArgs... > &container) | |
Constructor from a backing container. More... | |
![]() | |
BaseTensor () | |
Empty (invalid) constructor. More... | |
BaseTensor (const TensorInfo &info, const void * 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 |
const void * | GetMemoryArea () const |
Additional Inherited Members | |
![]() | |
~BaseTensor () | |
Protected destructor to stop users from making these (could still new one on the heap and then leak it...) More... | |
![]() | |
const void * | m_MemoryArea |
A tensor defined by a TensorInfo (shape and data type) and an immutable backing store.
Definition at line 314 of file Tensor.hpp.
|
inline |
Definition at line 319 of file Tensor.hpp.
|
inline |
Can be implicitly constructed from non-const Tensor.
Definition at line 322 of file Tensor.hpp.
|
inline |
Constructor from a backing container.
container | - An stl-like container type which implements data() and size() methods. Presence of data() and size() is a strong indicator of the continuous memory layout of the container, which is a requirement for Tensor data. 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 330 of file Tensor.hpp.
References TensorInfo::GetNumBytes().