ArmNN
 25.02
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TosaTypeAnyOf Struct Reference

#include <TosaLayerSupportRules.hpp>

Inheritance diagram for TosaTypeAnyOf:
[legend]
Collaboration diagram for TosaTypeAnyOf:
[legend]

Public Member Functions

template<typename Container >
 TosaTypeAnyOf (TosaSerializationTensor *tensor, 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 27 of file TosaLayerSupportRules.hpp.

Constructor & Destructor Documentation

◆ TosaTypeAnyOf()

TosaTypeAnyOf ( TosaSerializationTensor *  tensor,
const Container &  c 
)
inline

Definition at line 30 of file TosaLayerSupportRules.hpp.

31  {
32  m_Res = std::any_of(c.begin(), c.end(), [&tensor](DType dt)
33  {
34  return dt == tensor->GetDtype();
35  });
36  }

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