pub struct ProgramPlanCompiler;Expand description
Backend-neutral compiler from semantic model programs to immutable physical execution plans. A metadata-only provider pass discovers the initial value alignment, then aligned dtype arenas are rebuilt until the estimator result reaches a bounded monotonic fixed point. This avoids both an unproved alignment guess and one device allocation per weight component.
Implementations§
Source§impl ProgramPlanCompiler
impl ProgramPlanCompiler
pub fn compile<P: RuntimePolicy>( family: &PreparedModelFamily, catalog: &CapabilityCatalog, policy: &P, planning: &OperationPlanningHandle<'_>, options: &ProgramPlanCompileOptions, ) -> Result<ProgramPlanCompilation, VNextError>
pub fn compile_with_weight_materializers<P: RuntimePolicy>( family: &PreparedModelFamily, catalog: &CapabilityCatalog, policy: &P, planning: &OperationPlanningHandle<'_>, materializers: &WeightMaterializerRegistry, options: &ProgramPlanCompileOptions, ) -> Result<ProgramPlanCompilation, VNextError>
Auto Trait Implementations§
impl Freeze for ProgramPlanCompiler
impl RefUnwindSafe for ProgramPlanCompiler
impl Send for ProgramPlanCompiler
impl Sync for ProgramPlanCompiler
impl Unpin for ProgramPlanCompiler
impl UnsafeUnpin for ProgramPlanCompiler
impl UnwindSafe for ProgramPlanCompiler
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