Checkpoint class

Constructors

Checkpoint()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

loadIntoBytes(Module module, Uint8List bytes) → void
Load a checkpoint from a byte buffer into an existing module. The module must have the same number of parameters with matching shapes in the same order.
loadIntoFile(Module module, String path) → void
Read a checkpoint from disk into an existing module.
saveBytes(Module module, {bool fp16 = false}) Uint8List
Serialize a module's parameters to a fresh byte buffer.
saveFile(Module module, String path, {bool fp16 = false}) → void
Write a checkpoint to disk. Creates parent directories as needed.

Constants

magic → const List<int>
Magic bytes at the start of every checkpoint: D, P, T, C.
version → const int
Serialization format version. Bump when the on-disk layout changes in a backwards-incompatible way.