MCPcopy Create free account
hub / github.com/ARM-software/armnn / ValidateDataTypes

Function ValidateDataTypes

src/backends/backendsCommon/WorkloadData.cpp:266–276  ·  view source on GitHub ↗

---------------------------------------------------------------

Source from the content-addressed store, hash-verified

264
265//---------------------------------------------------------------
266void 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//---------------------------------------------------------------
279void ValidateTensorDataTypesMatch(const TensorInfo& first,

Callers 2

ValidateWeightDataTypeFunction · 0.85
ValidateMethod · 0.85

Calls 6

findFunction · 0.85
GetDataTypeNameFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
GetDataTypeMethod · 0.45

Tested by

no test coverage detected