Skip to main content

Module serialization

Module serialization 

Source
Expand description

Shared serialization helpers for knowledge-graph embedding models.

Embedding models keep their weights in scirs2_core ndarray matrices which do not serialize directly through oxicode/serde. These helpers convert those matrices to/from flat, shape-tagged vectors and provide a serializable snapshot of the shared BaseModel state so that each model’s save/load implementation stays small and consistent.

Structs§

BaseModelSnapshot
Serializable snapshot of the shared BaseModel state.
MatrixF32
Serializable, shape-tagged representation of a 2-D f32 matrix.
MatrixF64
Serializable, shape-tagged representation of a 2-D f64 matrix.
Tensor3F64
Serializable, shape-tagged representation of a 3-D f64 tensor.
VectorF32
Serializable, shape-tagged representation of a 1-D f32 vector.