cpptensor/Checkpoints
Checkpoints
Save and load tensors with cpptensor's versioned binary format.
cpptensor supports saving tensors to disk and loading them back via a
versioned binary format.
Save and load
using namespace cpptensor;
Tensor t = Tensor::randn({4, 4});
Tensor::save(t, "checkpoint.bin");
Tensor restored = Tensor::load("checkpoint.bin");The format is versioned, so files carry enough metadata to be read back correctly as the format evolves.
View behavior
Serialization interacts with views and contiguity. The repository documents the
exact binary layout and view semantics in docs/TensorSerialization.md.
Reference docs
The source tree includes deeper notes worth consulting:
docs/TensorSerialization.md— the versioned binary format and view behavior.docs/TensorViews.md— tensor view behavior.docs/Ops_Status.md— operator status and semantics.docs/LinearAlgebraDecompositionNotes.md— linear algebra decomposition notes.docs/PerformanceComparisonOps.md— performance notes and benchmark write-up.