ArmNN
 21.02
TypeAnyOf Struct Reference

#include <LayerSupportRules.hpp>

Inheritance diagram for TypeAnyOf:
Rule

Public Member Functions

template<typename Container >
 TypeAnyOf (const TensorInfo &info, const Container &c)
 
- 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 90 of file LayerSupportRules.hpp.

Constructor & Destructor Documentation

◆ TypeAnyOf()

TypeAnyOf ( const TensorInfo info,
const Container &  c 
)
inline

Definition at line 93 of file LayerSupportRules.hpp.

References TensorInfo::GetDataType(), armnn::info, and Rule::m_Res.

94  {
95  m_Res = std::any_of(c.begin(), c.end(), [&info](DataType dt)
96  {
97  return dt == info.GetDataType();
98  });
99  }
DataType
Definition: Types.hpp:32

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