88 std::vector<armnn::DataType> dataTypes = {DataTypes...};
91 if (!
info.m_InputTensorInfos.empty())
93 expectedInputType =
info.m_InputTensorInfos.front().GetDataType();
95 if (std::find(dataTypes.begin(), dataTypes.end(), expectedInputType) == dataTypes.end())
99 if (std::all_of(std::next(
info.m_InputTensorInfos.begin()),
100 info.m_InputTensorInfos.end(),
102 return it.GetDataType() == expectedInputType;
110 if (!
info.m_OutputTensorInfos.empty())
112 expectedOutputType =
info.m_OutputTensorInfos.front().GetDataType();
114 if (!
info.m_InputTensorInfos.empty())
116 expectedInputType =
info.m_InputTensorInfos.front().GetDataType();
118 if (expectedOutputType != expectedInputType)
123 else if (std::find(dataTypes.begin(), dataTypes.end(), expectedOutputType) == dataTypes.end())
127 if (std::all_of(std::next(
info.m_OutputTensorInfos.begin()),
128 info.m_OutputTensorInfos.end(),
130 return it.GetDataType() == expectedOutputType;