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

Function VerifyTensorInfoDataType

include/armnn/TypesUtils.hpp:383–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381float Dequantize(QuantizedType value, float scale, int32_t offset);
382
383inline void VerifyTensorInfoDataType(const armnn::TensorInfo & info, armnn::DataType dataType)
384{
385 if (info.GetDataType() != dataType)
386 {
387 std::stringstream ss;
388 ss << "Unexpected datatype:" << armnn::GetDataTypeName(info.GetDataType())
389 << " for tensor:" << info.GetShape()
390 << ". The type expected to be: " << armnn::GetDataTypeName(dataType);
391 throw armnn::Exception(ss.str());
392 }
393}
394
395} //namespace armnn

Callers 3

RunTestMethod · 0.85
FillInputTensorsMethod · 0.85
RunTestMethod · 0.85

Calls 5

GetDataTypeNameFunction · 0.85
ExceptionClass · 0.70
GetDataTypeMethod · 0.45
GetShapeMethod · 0.45
strMethod · 0.45

Tested by 3

RunTestMethod · 0.68
FillInputTensorsMethod · 0.68
RunTestMethod · 0.68