| 430 | } |
| 431 | |
| 432 | bool 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 | |
| 446 | bool TensorInfo::HasPerAxisQuantization() const |
| 447 | { |
no test coverage detected