pub struct ExecutionWeightPlan { /* private fields */ }Expand description
Trusted physical weight contract selected for one immutable execution plan.
The prepared family remains the source/checkpoint contract. This plan owns the physical schema consumed by providers, static memory planning, and initialization. Keeping those contracts separate allows a backend to select a prepared layout without changing model semantics or hiding an allocation behind a provider.
Implementations§
Source§impl ExecutionWeightPlan
impl ExecutionWeightPlan
pub fn identity(family: &PreparedModelFamily) -> Result<Self, VNextError>
pub fn source_schema_fingerprint(&self) -> &str
pub fn materializer_id(&self) -> &WeightMaterializerId
pub const fn materializer_version(&self) -> ContractVersion
pub fn materializer_implementation_fingerprint(&self) -> &str
pub fn artifact_abi(&self) -> Result<WeightArtifactAbi, VNextError>
pub fn approximate_quality_approval( &self, ) -> Option<&ApproximateWeightQualityApprovalRecord>
pub fn schema(&self) -> &WeightSchema
pub fn component_sources(&self) -> &BTreeMap<WeightId, Vec<WeightId>>
pub fn static_weight_transforms(&self) -> &[StaticWeightTransformPlan]
pub fn maximum_static_weight_transform_scratch_bytes( &self, ) -> Result<u64, VNextError>
pub fn static_weight_transform_scratch_resource_id( &self, ) -> Result<Option<ResourceId>, VNextError>
pub fn fingerprint(&self) -> Result<String, VNextError>
Trait Implementations§
Source§impl Clone for ExecutionWeightPlan
impl Clone for ExecutionWeightPlan
Source§fn clone(&self) -> ExecutionWeightPlan
fn clone(&self) -> ExecutionWeightPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionWeightPlan
impl Debug for ExecutionWeightPlan
Source§impl<'de> Deserialize<'de> for ExecutionWeightPlan
impl<'de> Deserialize<'de> for ExecutionWeightPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExecutionWeightPlan
Source§impl PartialEq for ExecutionWeightPlan
impl PartialEq for ExecutionWeightPlan
Source§impl Serialize for ExecutionWeightPlan
impl Serialize for ExecutionWeightPlan
impl StructuralPartialEq for ExecutionWeightPlan
Auto Trait Implementations§
impl Freeze for ExecutionWeightPlan
impl RefUnwindSafe for ExecutionWeightPlan
impl Send for ExecutionWeightPlan
impl Sync for ExecutionWeightPlan
impl Unpin for ExecutionWeightPlan
impl UnsafeUnpin for ExecutionWeightPlan
impl UnwindSafe for ExecutionWeightPlan
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