ArmNN
 20.11
PermuteDescriptor Struct Reference

A PermuteDescriptor for the PermuteLayer. More...

#include <Descriptors.hpp>

Public Member Functions

 PermuteDescriptor ()
 
 PermuteDescriptor (const PermutationVector &dimMappings)
 
bool operator== (const PermuteDescriptor &rhs) const
 

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 PermuteDescriptor for the PermuteLayer.

Definition at line 113 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ PermuteDescriptor() [1/2]

PermuteDescriptor ( )
inline

Definition at line 115 of file Descriptors.hpp.

116  : m_DimMappings{}
117  {}
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.

◆ PermuteDescriptor() [2/2]

PermuteDescriptor ( const PermutationVector dimMappings)
inline

Definition at line 119 of file Descriptors.hpp.

120  : m_DimMappings(dimMappings)
121  {}
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.

Member Function Documentation

◆ operator==()

bool operator== ( const PermuteDescriptor rhs) const
inline

Definition at line 123 of file Descriptors.hpp.

References PermuteDescriptor::m_DimMappings.

124  {
125  return m_DimMappings.IsEqual(rhs.m_DimMappings);
126  }
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.
bool IsEqual(const PermutationVector &other) const
Definition: Types.hpp:238

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.

{0U, 3U, 1U, 2U}.

Definition at line 130 of file Descriptors.hpp.

Referenced by PermuteLayer::GetPermutation(), PermuteLayer::InferOutputShapes(), PermuteDescriptor::operator==(), PermuteValueSet1Test(), PermuteValueSet2Test(), PermuteValueSet3Test(), StringifyLayerParameters< PermuteDescriptor >::Serialize(), SimplePermuteTest(), and SerializerVisitor::VisitPermuteLayer().


The documentation for this struct was generated from the following file: