(info: TensorInfo)
| 703 | |
| 704 | |
| 705 | def _format_tensor_info(info: TensorInfo) -> str: |
| 706 | kind = "CT" if info.data_buffer_idx > 0 else "T" |
| 707 | dtype = _SCALAR_TYPE_NAMES.get(info.scalar_type, str(info.scalar_type)) |
| 708 | sizes_str = ",".join(str(s) for s in info.sizes) |
| 709 | fqn_str = f' "{info.fqn}"' if info.fqn else "" |
| 710 | return f"[idx={info.evalue_index}] {kind} {dtype}[{sizes_str}]{fqn_str}" |
| 711 | |
| 712 | |
| 713 | def format_diff_result( # noqa: C901 |
no test coverage detected