pub struct ResolvedWeightBinding { /* private fields */ }Expand description
Immutable physical weight contract carried by an execution-plan binding.
This prevents the provider boundary from collapsing a quantized/composite
layout into only resource ranges and a synthetic u8 dtype.
schema_format_id identifies the enclosing source or materialized schema.
It is a planning compatibility key, not the physical ABI of every component
referenced by this binding. Providers must decode components from
physical_layout and components.
Implementations§
Source§impl ResolvedWeightBinding
impl ResolvedWeightBinding
pub fn from_schema( schema: &WeightSchema, weight_id: &WeightId, ) -> Result<Self, VNextError>
pub fn validate_logical( &self, logical_dimensions: &[u64], logical_element_type: ElementType, ) -> Result<(), VNextError>
Source§impl ResolvedWeightBinding
impl ResolvedWeightBinding
pub fn weight_id(&self) -> &WeightId
pub fn layout_id(&self) -> &WeightLayoutId
pub const fn schema_version(&self) -> ContractVersion
pub fn physical_layout(&self) -> &PhysicalWeightLayout
pub fn components(&self) -> &[ResolvedWeightComponentLayout]
pub fn quantization_formats(&self) -> BTreeSet<QuantizationFormatId>
Trait Implementations§
Source§impl Clone for ResolvedWeightBinding
impl Clone for ResolvedWeightBinding
Source§fn clone(&self) -> ResolvedWeightBinding
fn clone(&self) -> ResolvedWeightBinding
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 ResolvedWeightBinding
impl Debug for ResolvedWeightBinding
Source§impl<'de> Deserialize<'de> for ResolvedWeightBinding
impl<'de> Deserialize<'de> for ResolvedWeightBinding
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 ResolvedWeightBinding
Source§impl PartialEq for ResolvedWeightBinding
impl PartialEq for ResolvedWeightBinding
Source§impl Serialize for ResolvedWeightBinding
impl Serialize for ResolvedWeightBinding
impl StructuralPartialEq for ResolvedWeightBinding
Auto Trait Implementations§
impl Freeze for ResolvedWeightBinding
impl RefUnwindSafe for ResolvedWeightBinding
impl Send for ResolvedWeightBinding
impl Sync for ResolvedWeightBinding
impl Unpin for ResolvedWeightBinding
impl UnsafeUnpin for ResolvedWeightBinding
impl UnwindSafe for ResolvedWeightBinding
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