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§
- HexDump
Config - Configuration for hex dump display
- Layer
Info - Layer information for data flow visualization
- Tensor
Statistics - Statistics for a tensor
- Tree
Node - 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.