ArmNN
 22.05.01
ShapesAreSameRank Struct Reference

#include <LayerSupportRules.hpp>

Inheritance diagram for ShapesAreSameRank:
Rule

Public Member Functions

 ShapesAreSameRank (const TensorInfo &info0, const TensorInfo &info1)
 
- Public Member Functions inherited from Rule
bool operator() () const
 

Additional Inherited Members

- Public Attributes inherited from Rule
bool m_Res = true
 

Detailed Description

Definition at line 138 of file LayerSupportRules.hpp.

Constructor & Destructor Documentation

◆ ShapesAreSameRank()

ShapesAreSameRank ( const TensorInfo info0,
const TensorInfo info1 
)
inline

Definition at line 140 of file LayerSupportRules.hpp.

References TensorShape::GetNumDimensions(), TensorInfo::GetShape(), and Rule::m_Res.

141  {
142  m_Res = info0.GetShape().GetNumDimensions() == info1.GetShape().GetNumDimensions();
143  }

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