ParameterComponentRegistry<T>
Models & Types · AiDotNet.Models.Parameters
Owns a model’s deterministic parameter manifest and derives count, flat values and restore from the same ordered component snapshot.
Implements: IParameterManifestProvider
Constructors
| Constructor | Summary |
|---|---|
ParameterComponentRegistry() |
Properties
| Property | Summary |
|---|---|
IReadOnlyList<IParameterSource<T>> Components { get; } |
The registered, currently present sources in stable-ID order. |
ParameterLayoutSnapshot ParameterLayout { get; } |
|
bool CanInitializeOptimizerParameters { get; } |
True when optimizer-owned state exists and the complete flat layout is resolved now. |
bool HasComponents { get; } |
True once at least one component identity has been registered. |
bool HasOptimizerUpdatableComponents { get; } |
True only when the manifest explicitly contains optimizer-updatable state. |
bool HasPrimaryParameterComponents { get; } |
True when the manifest contains state that defines the model itself rather than auxiliary buffers. |
long ParameterCount { get; } |
The exact resolved count. |
Methods
| Method | Summary |
|---|---|
IEnumerable<ParameterChunk<T>> GetParameterStateChunks() |
Yields the registered state in stable-ID order. |
Vector<T> GetParameters() |
Concatenates the same stable-ID ordered entries described by the manifest. |
void MaterializeCheckpointSources() |
Materializes nested neural-network sources before a checkpoint manifest is captured. |
void PrepareParameterSurface(ParameterSurfaceIntent intent) |
Advances every generated or manually registered component to one common lifecycle boundary. |
void Register(IParameterSource<T> component) |
Registers a legacy component using its source type as a deterministic identity seed. |
void Register(string stableId, IParameterSource<T> component, ParameterSlotRole role, ParameterAvailability availability) |
Registers a component by durable identity and semantic role. |
void SetMatchingParameters(Vector<T> parameters, ParameterLayoutSnapshot checkpointLayout) |
Restores every checkpoint slot whose stable identity and shape still match the live model. |
void SetParameters(Vector<T> parameters) |
Restores slices using the exact manifest snapshot used to validate the vector. |