ArmNN
 23.05
TransposeDescriptor Struct Reference

A TransposeDescriptor for the TransposeLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for TransposeDescriptor:
BaseDescriptor

Public Member Functions

 TransposeDescriptor ()
 
 TransposeDescriptor (const PermutationVector &dimMappings)
 
bool operator== (const TransposeDescriptor &rhs) const
 
- Public Member Functions inherited from BaseDescriptor
virtual bool IsNull () const
 
virtual ~BaseDescriptor ()=default
 

Public Attributes

PermutationVector m_DimMappings
 Indicates how to translate tensor elements from a given source into the target destination, when source and target potentially have different memory layouts e.g. More...
 

Detailed Description

A TransposeDescriptor for the TransposeLayer.

Definition at line 1457 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ TransposeDescriptor() [1/2]

TransposeDescriptor ( )
inline

Definition at line 1459 of file Descriptors.hpp.

1460  : m_DimMappings{}
1461  {}

◆ TransposeDescriptor() [2/2]

TransposeDescriptor ( const PermutationVector dimMappings)
inline

Definition at line 1463 of file Descriptors.hpp.

1464  : m_DimMappings(dimMappings)
1465  {}

Member Function Documentation

◆ operator==()

bool operator== ( const TransposeDescriptor rhs) const
inline

Definition at line 1467 of file Descriptors.hpp.

1468  {
1469  return m_DimMappings.IsEqual(rhs.m_DimMappings);
1470  }

References PermutationVector::IsEqual(), and TransposeDescriptor::m_DimMappings.

Member Data Documentation

◆ m_DimMappings

PermutationVector m_DimMappings

Indicates how to translate tensor elements from a given source into the target destination, when source and target potentially have different memory layouts e.g.

Input Shape {1, 1, 4, 4} Permutation Vector {0, 2, 3, 1} Output Shape {1, 4, 4, 1} dim "0" of input goes into index 0 ([ 1, X, X, X]) dim "2" of input goes into index 1 ([ 1, 4, X, X ]) dim "3" of input goes into index 2 ([ 1, 4, 4, X ]) dim "1" of input goes into index 3 ([ 1, 4, 4, 1 ])

Definition at line 1481 of file Descriptors.hpp.

Referenced by ClTransposeWorkload::ClTransposeWorkload(), ConvertTransposeToTosaOperator(), TransposeLayer::GetPermutation(), TransposeLayer::InferOutputShapes(), NeonTransposeWorkload::NeonTransposeWorkload(), TransposeDescriptor::operator==(), StringifyLayerParameters< TransposeDescriptor >::Serialize(), and TransposeQueueDescriptor::Validate().


The documentation for this struct was generated from the following file:
armnn::TransposeDescriptor::m_DimMappings
PermutationVector m_DimMappings
Indicates how to translate tensor elements from a given source into the target destination,...
Definition: Descriptors.hpp:1481
armnn::PermutationVector::IsEqual
bool IsEqual(const PermutationVector &other) const
Definition: Types.hpp:358