JAX dataset iterator replay support
Stormlog now correctly handles JAX dataset iterator checkpointing and replay in profiling contexts, eliminating state corruption when resuming long-running data pipelines.
- Transparent iterator state preservation across profile checkpoint/resume cycles
- Support for jax.experimental.io.dataset replay patterns
- Maintains data ordering and synchronization semantics during profiling
from stormlog.jax import JAXMemoryProfiler
import jax.experimental.io as jax_io
profiler = JAXMemoryProfiler()
ds = jax_io.dataset.load('data.tfrecord')
with profiler.profile_context("dataset_replay"):
for batch in ds.repeat().take(1000):
# Iterator state correctly preserved across restarts
result = model(batch)



