tlm_adjoint.checkpoint_schedules.memory

Module Contents

class tlm_adjoint.checkpoint_schedules.memory.MemoryCheckpointSchedule(max_n=None)

A checkpointing schedule where all forward restart and non-linear dependency data are stored in memory.

Online, unlimited adjoint calculations permitted.

property is_exhausted

Whether the schedule has concluded. Note that some schedules permit multiple adjoint calculation, and may never conclude.

property uses_disk_storage

Whether the schedule may use disk storage. If False then no disk storage is required.

iter()

A generator which should be overridden in derived classes in order to define a checkpointing schedule.