Skip to main content

WeightComponentSource

Trait WeightComponentSource 

Source
pub trait WeightComponentSource: Send + Sync {
    // Required method
    fn component<'source>(
        &'source self,
        component: &WeightComponentSpec,
    ) -> Result<WeightComponentPayload<'source>, VNextError>;
}
Expand description

Backend-neutral source of schema-addressed physical weight components. Implementations own checkpoint file-format discovery and source-payload validation. The execution plan’s trusted super::WeightMaterializer owns any repacking or quantization before resource initialization performs placement and device submission.

Required Methods§

Source

fn component<'source>( &'source self, component: &WeightComponentSpec, ) -> Result<WeightComponentPayload<'source>, VNextError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§