---------------------------------------------------------------
| 264 | |
| 265 | //--------------------------------------------------------------- |
| 266 | void ValidateDataTypes(const TensorInfo& info, |
| 267 | const std::vector<armnn::DataType>& supportedTypes, |
| 268 | std::string const& descName) |
| 269 | { |
| 270 | auto iterator = std::find(supportedTypes.begin(), supportedTypes.end(), info.GetDataType()); |
| 271 | if (iterator == supportedTypes.end()) |
| 272 | { |
| 273 | throw InvalidArgumentException(descName + ": " + " Tensor type " + GetDataTypeName(info.GetDataType()) + |
| 274 | " is not supported."); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | //--------------------------------------------------------------- |
| 279 | void ValidateTensorDataTypesMatch(const TensorInfo& first, |
no test coverage detected