Serialization

10 public types in this namespace, organized by kind.

Models & Types (4)

Type Summary
MatrixJsonConverter JSON converter for Matrix types.
SafeSerializationBinder A custom serialization binder that restricts deserialization to safe types within the AiDotNet namespace.
TensorJsonConverter JSON converter for Tensor types.
VectorJsonConverter JSON converter for Vector types.

Interfaces (1)

Type Summary
ILayerStatePersistable Opt-in contract letting ANY type be carried as layer construction state, without the generator having to learn about it.

Structs (1)

Type Summary
LayerStateBag The saved constructor state of a single layer, as read back at deserialization time.

Helpers & Utilities (4)

Type Summary
DelegateState Saves and restores a delegate a layer was constructed with.
ExpressionState Saves and restores an expression tree a layer was constructed with.
JsonConverterRegistry Registry for JSON converters used in model serialization.
LayerFactoryRegistry<T> Rebuilds a layer that the generated factory table does not know about.