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§
- Base
Model Snapshot - Serializable snapshot of the shared
BaseModelstate. - Matrix
F32 - Serializable, shape-tagged representation of a 2-D
f32matrix. - Matrix
F64 - Serializable, shape-tagged representation of a 2-D
f64matrix. - Tensor3
F64 - Serializable, shape-tagged representation of a 3-D
f64tensor. - Vector
F32 - Serializable, shape-tagged representation of a 1-D
f32vector.