Expand description
Memory timeline analysis — TensorFlow Memory Profile model.
Structs§
- Device
Memory Stats - Per-device memory stats.
- Live
Allocation - Active allocation at the global peak (TensorFlow breakdown table).
- Memory
Profile - Full memory profile reconstructed from trace evidence.
- Memory
Summary - Aggregated memory statistics for one probe run.
- Memory
Timeline Point - One point on the memory-vs-time curve for a device.
- Node
Memory Metrics - Per-span / per-op TensorFlow memory metrics.
Enums§
- Memory
Action - Allocation or deallocation recorded during a probe run.
- Memory
Category - TensorFlow-profiler-style memory category for timeline breakdown.
Functions§
- analyze_
memory - Build a TensorFlow-style memory profile from a parsed trace document.
- category_
for_ step - Map a training step (+ tensor flags) to a PyTorch-style memory category.
- dtype_
size_ bytes - Derive element size in bytes from a Candle-style dtype label (
f32,F32, …). - elem_
count - Product of shape dimensions; returns
0for empty shape. - node_
memory_ metrics - Attribute memory metrics to graph node ids (span ids and
{span}/op/{n}op ids). - resolve_
storage_ bytes - Resolve explicit bytes or derive from shape/dtype.
- storage_
bytes - Storage bytes for a dense tensor (
elem_count × dtype_bytes).