Skip to main content

ProgramPlanCompileOptions

Struct ProgramPlanCompileOptions 

Source
pub struct ProgramPlanCompileOptions { /* private fields */ }
Expand description

Explicit semantic inputs, per-node selection preferences, and optional completion diagnostics for compiling a model program. Product input capacities are required because they bound request-lifetime backing; the compiler never guesses a one-token capacity.

Implementations§

Source§

impl ProgramPlanCompileOptions

Source

pub fn new( input_tensor_specs: BTreeMap<ProgramValueId, ProgramTensorSpec>, ) -> Result<Self, VNextError>

Source

pub fn insert_tensor_spec( &mut self, value_id: ProgramValueId, tensor: ProgramTensorSpec, ) -> Result<(), VNextError>

Adds an explicit tensor for an intermediate/output whose contract is intentionally not inferable (for example a non-contiguous layout).

Source

pub fn require_capability(&mut self, node_id: NodeId, capability: CapabilityId)

Source

pub fn prefer_provider(&mut self, node_id: NodeId, provider_id: ProviderId)

Source

pub fn retain_completion_value(&mut self, value_id: ProgramValueId) -> bool

Retains one semantic activation until the terminal completion fence for an explicit diagnostic readback. Normal product plans leave this empty.

Source

pub fn retain_all_outputs_for_determinism( &mut self, family: &PreparedModelFamily, ) -> Result<(), VNextError>

Configures a diagnostic plan whose every operation output remains readable after the terminal completion fence.

Source

pub fn completion_retention(&self) -> &CompletionRetentionSpec

Source

pub fn tensor_specs(&self) -> &BTreeMap<ProgramValueId, ProgramTensorSpec>

Source

pub fn require_weight_materializer( &mut self, materializer_id: WeightMaterializerId, )

Source

pub fn weight_materializer_id(&self) -> &WeightMaterializerId

Trait Implementations§

Source§

impl Clone for ProgramPlanCompileOptions

Source§

fn clone(&self) -> ProgramPlanCompileOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProgramPlanCompileOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ProgramPlanCompileOptions

Source§

impl PartialEq for ProgramPlanCompileOptions

Source§

fn eq(&self, other: &ProgramPlanCompileOptions) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ProgramPlanCompileOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V