pub struct WeightArtifactAbi { /* private fields */ }Expand description
Stable physical ABI of cached or device-produced execution weights.
This identity deliberately excludes the materializer implementation fingerprint, compiler SHA, device model, and worker count. Those values are useful runtime evidence, but none of them changes the bytes accepted by an execution provider. Cache compatibility is therefore tied to this typed ABI plus the source/component identity rather than to one producer build.
Implementations§
Source§impl WeightArtifactAbi
impl WeightArtifactAbi
pub const fn version(&self) -> ContractVersion
pub fn weight_format_id(&self) -> &WeightFormatId
pub fn weight_layout_id(&self) -> &WeightLayoutId
pub fn quantization_format_ids(&self) -> &BTreeSet<QuantizationFormatId>
pub fn fingerprint(&self) -> Result<String, VNextError>
Trait Implementations§
Source§impl Clone for WeightArtifactAbi
impl Clone for WeightArtifactAbi
Source§fn clone(&self) -> WeightArtifactAbi
fn clone(&self) -> WeightArtifactAbi
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 WeightArtifactAbi
impl Debug for WeightArtifactAbi
Source§impl<'de> Deserialize<'de> for WeightArtifactAbi
impl<'de> Deserialize<'de> for WeightArtifactAbi
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 WeightArtifactAbi
Source§impl PartialEq for WeightArtifactAbi
impl PartialEq for WeightArtifactAbi
Source§impl Serialize for WeightArtifactAbi
impl Serialize for WeightArtifactAbi
impl StructuralPartialEq for WeightArtifactAbi
Auto Trait Implementations§
impl Freeze for WeightArtifactAbi
impl RefUnwindSafe for WeightArtifactAbi
impl Send for WeightArtifactAbi
impl Sync for WeightArtifactAbi
impl Unpin for WeightArtifactAbi
impl UnsafeUnpin for WeightArtifactAbi
impl UnwindSafe for WeightArtifactAbi
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