ArmNN
 25.02
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  }

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