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

Method IsTypeSpaceMatch

src/armnn/Tensor.cpp:432–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432bool TensorInfo::IsTypeSpaceMatch(const TensorInfo& other) const
433{
434 bool match = true;
435
436 match &= m_DataType == other.m_DataType;
437
438 if (IsQuantized() && !HasMultipleQuantizationScales())
439 {
440 match &= GetQuantizationScale() == other.GetQuantizationScale() &&
441 GetQuantizationOffset() == other.GetQuantizationOffset();
442 }
443 return match;
444}
445
446bool TensorInfo::HasPerAxisQuantization() const
447{

Callers 9

IsConcatSupportedMethod · 0.80
IsSplitterSupportedMethod · 0.80
IsConcatSupportedMethod · 0.80
IsSplitterSupportedMethod · 0.80
CreateTensorsMethod · 0.80
CreateTensorsMethod · 0.80

Calls 2

GetQuantizationScaleMethod · 0.45
GetQuantizationOffsetMethod · 0.45

Tested by

no test coverage detected