| 561 | } |
| 562 | |
| 563 | int max_consecutive_elements_display_width(std::ostream &s, DataType dt, const uint8_t *ptr, unsigned int n) |
| 564 | { |
| 565 | switch (dt) |
| 566 | { |
| 567 | case DataType::U8: |
| 568 | case DataType::QASYMM8: |
| 569 | return max_consecutive_elements_display_width_impl<uint8_t>(s, ptr, n); |
| 570 | case DataType::S8: |
| 571 | case DataType::QSYMM8: |
| 572 | case DataType::QASYMM8_SIGNED: |
| 573 | case DataType::QSYMM8_PER_CHANNEL: |
| 574 | return max_consecutive_elements_display_width_impl<int8_t>(s, reinterpret_cast<const int8_t *>(ptr), n); |
| 575 | case DataType::U16: |
| 576 | case DataType::QASYMM16: |
| 577 | return max_consecutive_elements_display_width_impl<uint16_t>(s, reinterpret_cast<const uint16_t *>(ptr), n); |
| 578 | case DataType::S16: |
| 579 | case DataType::QSYMM16: |
| 580 | return max_consecutive_elements_display_width_impl<int16_t>(s, reinterpret_cast<const int16_t *>(ptr), n); |
| 581 | case DataType::U32: |
| 582 | return max_consecutive_elements_display_width_impl<uint32_t>(s, reinterpret_cast<const uint32_t *>(ptr), n); |
| 583 | case DataType::S32: |
| 584 | return max_consecutive_elements_display_width_impl<int32_t>(s, reinterpret_cast<const int32_t *>(ptr), n); |
| 585 | case DataType::U64: |
| 586 | return max_consecutive_elements_display_width_impl<uint64_t>(s, reinterpret_cast<const uint64_t *>(ptr), n); |
| 587 | case DataType::S64: |
| 588 | return max_consecutive_elements_display_width_impl<int64_t>(s, reinterpret_cast<const int64_t *>(ptr), n); |
| 589 | case DataType::BFLOAT16: |
| 590 | return max_consecutive_elements_display_width_impl<bfloat16>(s, reinterpret_cast<const bfloat16 *>(ptr), n); |
| 591 | case DataType::F16: |
| 592 | return max_consecutive_elements_display_width_impl<half>(s, reinterpret_cast<const half *>(ptr), n); |
| 593 | case DataType::F32: |
| 594 | return max_consecutive_elements_display_width_impl<float>(s, reinterpret_cast<const float *>(ptr), n); |
| 595 | default: |
| 596 | ARM_COMPUTE_ERROR("Undefined element size for given data type"); |
| 597 | } |
| 598 | return 0; |
| 599 | } |
| 600 | #endif /* ARM_COMPUTE_ASSERTS_ENABLED */ |
| 601 | |
| 602 | } // namespace arm_compute |
no outgoing calls
no test coverage detected