Skip to main content

Module serde_model

Module serde_model 

Source
Expand description

Model serialization/deserialization (feature: serde).

This module defines a versioned, stable on-disk format for Mlp.

Design notes:

  • We do NOT directly serialize internal Mlp/Layer structs, to keep the file format stable even if internal representation changes.
  • All deserialization validates dimensions, parameter lengths, and that all parameters are finite.

Structs§

SerializedLayer
SerializedMlp

Enums§

SerializedActivation

Constants§

MODEL_FORMAT_VERSION