8 #include <tosa_serialization_handler.h>
10 using namespace armnn;
17 template<
typename Container>
20 m_Res = std::any_of(c.begin(), c.end(), [&op](Attribute attribute)
22 return attribute == op->GetAttributeType();
29 template<
typename Container>
32 m_Res = std::any_of(c.begin(), c.end(), [&tensor](DType dt)
34 return dt == tensor->GetDtype();
49 template<
typename Container>
52 m_Res = (c1.size() == c2.size());
59 const std::vector<std::tuple<DType, DType>>& c)
63 if (std::get<0>(check) == std::get<0>(item) &&
64 std::get<1>(check) == std::get<1>(item))
77 const std::vector<std::tuple<DType, DType, DType>>& c)
81 if (std::get<0>(check) == std::get<0>(item) &&
82 std::get<1>(check) == std::get<1>(item) &&
83 std::get<2>(check) == std::get<2>(item))
Copyright (c) 2021 ARM Limited and Contributors.
constexpr unsigned int MaxNumOfTensorDimensions
TosaAssertSize(const Container &c1, const Container &c2)
TosaContainerContainsThreeTypes(std::tuple< DType, DType, DType > &check, const std::vector< std::tuple< DType, DType, DType >> &c)
TosaContainerContainsTwoTypes(std::tuple< DType, DType > &check, const std::vector< std::tuple< DType, DType >> &c)
TosaOperatorAttributeOfAny(TosaSerializationOperator *op, const Container &c)
TosaTensorNumDimensionsWithinBounds(TosaSerializationTensor *tensor)
TosaTypeAnyOf(TosaSerializationTensor *tensor, const Container &c)