Expand description
Logical storage-lifetime and physical device-memory analysis.
Structs§
- Logical
Device Memory Stats - Logical-memory statistics for one device.
- Logical
Memory Peak - The simultaneous global logical-memory peak.
- Logical
Memory Profile - Evidence derived only from
(device, storage_id)allocation lifetimes. - Logical
Memory Timeline Point - Simultaneous logical-memory state after all events at one timestamp.
- Logical
Storage Lifetime - One backend storage lifetime. Tensor aliases are metadata on the storage, not allocations.
- Memory
Profile - Memory evidence for a trace. An absent plane is represented by
None, never zeroes. - Node
Memory Metrics - Per-node logical memory evidence.
Nonemeans that metric was not observed. - Physical
Device Memory Stats - Observed physical-memory extrema for one device.
- Physical
Memory Profile - Physical memory evidence derived only from explicit device samples.
- Physical
Memory Timeline Point - One physical device or allocator checkpoint, retained without logical inference.
Enums§
- Memory
Action - Allocation or deallocation recorded during a probe run.
- Memory
Category - Semantic category attached to a logical storage lifetime.
Functions§
- analyze_
memory - Analyze the logical and physical memory planes independently.
- category_
for_ step - Map a training step and tensor flags to a semantic memory category.
- dense_
tensor_ bytes - Dense tensor footprint (
elem_count * dtype_bytes), not backing-allocation size. - dtype_
size_ bytes - Derive element size in bytes from a Candle-style dtype label (
f32,F32, …). - elem_
count - Product of shape dimensions; an empty shape is a scalar with one element.
- node_
memory_ metrics - Attribute logical memory evidence to span ids and
{span}/op/{n}operation ids. - resolve_
dense_ tensor_ bytes - Resolve an explicit dense footprint or derive it from shape and dtype.