pub struct WeightMaterializerRegistry { /* private fields */ }Expand description
Process-local registry retaining the exact implementations authorized to transform checkpoint schemas. It is deliberately neither serializable nor reconstructible from a capability catalog.
Implementations§
Source§impl WeightMaterializerRegistry
impl WeightMaterializerRegistry
pub fn new( materializers: Vec<Box<dyn WeightMaterializer>>, ) -> Result<Self, VNextError>
pub fn identity_only() -> Result<Self, VNextError>
Sourcepub fn augment_catalog(
&self,
catalog: CapabilityCatalog,
) -> Result<CapabilityCatalog, VNextError>
pub fn augment_catalog( &self, catalog: CapabilityCatalog, ) -> Result<CapabilityCatalog, VNextError>
Extends a capability catalog with descriptors from these exact process-local implementation objects.
Sourcepub fn select_exact(
&self,
family: &PreparedModelFamily,
catalog: &CapabilityCatalog,
materializer_id: &WeightMaterializerId,
) -> Result<TrustedExecutionWeightPlan, VNextError>
pub fn select_exact( &self, family: &PreparedModelFamily, catalog: &CapabilityCatalog, materializer_id: &WeightMaterializerId, ) -> Result<TrustedExecutionWeightPlan, VNextError>
Invokes the selected trusted implementation and returns a witness that
cannot be forged by deserializing an ExecutionWeightPlan.
Selects a materializer that is value-preserving by contract.
Approximate transforms require a future typed quality approval carrying checked-in numerical-tolerance evidence. Keeping that authority out of this entrypoint prevents a build feature or backend capability from silently changing checkpoint precision.
pub fn descriptors( &self, ) -> BTreeMap<WeightMaterializerId, WeightMaterializerDescriptor>
Auto Trait Implementations§
impl !RefUnwindSafe for WeightMaterializerRegistry
impl !UnwindSafe for WeightMaterializerRegistry
impl Freeze for WeightMaterializerRegistry
impl Send for WeightMaterializerRegistry
impl Sync for WeightMaterializerRegistry
impl Unpin for WeightMaterializerRegistry
impl UnsafeUnpin for WeightMaterializerRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more