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

#include <TosaLayerSupportRules.hpp>

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

Public Member Functions

 TosaContainerContainsTwoTypes (std::tuple< DType, DType > &check, const std::vector< std::tuple< DType, DType > > &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 56 of file TosaLayerSupportRules.hpp.

Constructor & Destructor Documentation

◆ TosaContainerContainsTwoTypes()

TosaContainerContainsTwoTypes ( std::tuple< DType, DType > & check,
const std::vector< std::tuple< DType, DType > > & c )
inlineexplicit

Definition at line 58 of file TosaLayerSupportRules.hpp.

60 {
61 for (auto item: c)
62 {
63 if (std::get<0>(check) == std::get<0>(item) &&
64 std::get<1>(check) == std::get<1>(item))
65 {
66 m_Res = true;
67 return;
68 }
69 }
70 m_Res = false;
71 }

References Rule::m_Res.


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