Expand description
Architecture-declared mutable state and concrete runtime realizations. Backend-neutral mutable model-state contracts.
Architectures declare state geometry through StateLayout. Runtime
policies select a residency realization, while concrete backends retain
their native layer-state and tensor types.
Structs§
- Architecture
State Partition Plan - Complete architecture-authored mutable-state partition policy.
- Architecture
State Partition Rule - One architecture-authored rule in a mutable-state partition plan.
- Device
State - Fully device-resident state with one concrete value per architecture layer.
- Model
State Identity - Architecture and placement identity used to derive persistence identity.
- State
Layout - Complete ordered mutable-state geometry owned by one model instance.
- State
Segment Id - Validated stable identity of one contiguous mutable-state segment.
- State
Segment Spec - One named contiguous range in an architecture’s state layout.
Enums§
- Architecture
State Partition Error - Invalid architecture-authored mutable-state partition policy.
- Architecture
State Placement - Architecture-declared placement of one contiguous mutable-state range.
- Architecture
State Realization Error - Failure while selecting and realizing architecture-authored mutable state.
- State
Error - Invalid architecture state geometry or runtime access.
- State
Segment Lifetime - Lifetime policy attached to a named mutable-state segment.
Constants§
- DEFAULT_
STATE_ SEGMENT_ ID - Stable name assigned to the implicit segment of a simple state layout.
Traits§
- Architecture
State Factory - Additive backend mechanism for realizing an architecture-declared state layout.
- Layer
Runtime State - Optional capability for architectures with one indexed state per layer.
- Resettable
Runtime Layer State - Reset capability for one concrete backend-native layer state.
- Resettable
Runtime State - Named-segment reset supported by a concrete runtime-state realization.
- Runtime
Layer State - Concrete layer state capable of exposing backend-native retained tensors.
- Runtime
State - Mutable state realization consumed by generic resident and layerwise engines.
- Runtime
State Components - Mutable access to architecture-declared fixed state components.
Functions§
- realize_
architecture_ state - Selects the architecture’s exact state layout and realizes it through an explicitly supplied additive mechanism.