Skip to main content

Module hexdump

Module hexdump 

Source
Expand description

Hex dump and data flow visualization for tensor inspection (GH-122).

Implements Toyota Way Principle 12 (Genchi Genbutsu): Go and see the actual tensor values, not abstractions.

§Features

  • Hex dump with ASCII sidebar
  • Data flow visualization
  • Model hierarchy tree view
  • Tensor statistics summary

§Example

use aprender::format::hexdump::{hex_dump, HexDumpConfig};

let data = [0x41, 0x50, 0x52, 0x31]; // "APR1"
let dump = hex_dump(&data, &HexDumpConfig::default());
assert!(dump.contains("41 50 52 31"));
assert!(dump.contains("APR1"));

§PMAT Compliance

  • Zero unwrap() calls
  • All string formatting is safe

Structs§

HexDumpConfig
Configuration for hex dump display
LayerInfo
Layer information for data flow visualization
TensorStatistics
Statistics for a tensor
TreeNode
Node in model hierarchy tree

Functions§

data_flow_diagram
Generate data flow visualization for model layers.
hex_dump
Generate hex dump of byte slice.
statistics_table
Generate statistics table for multiple tensors.
tensor_hex_dump
Generate hex dump of f32 tensor values.
tree_view
Generate tree view of model hierarchy.