ArmNN
 25.11
Loading...
Searching...
No Matches
TypeAnyOf Struct Reference

#include <LayerSupportRules.hpp>

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

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 89 of file LayerSupportRules.hpp.

Constructor & Destructor Documentation

◆ TypeAnyOf()

template<typename Container>
TypeAnyOf ( const TensorInfo & info,
const Container & c )
inline

Definition at line 92 of file LayerSupportRules.hpp.

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

References armnn::info, and Rule::m_Res.


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