pub struct WeightTensorSpec {
pub id: WeightId,
pub dimensions: Vec<u64>,
pub logical_element_type: ElementType,
pub physical_layout: PhysicalWeightLayout,
pub required: bool,
}Fields§
§id: WeightId§dimensions: Vec<u64>§logical_element_type: ElementTypeDtype observed by the semantic program after decoding any physical packing, indexing, or quantization components.
physical_layout: PhysicalWeightLayout§required: boolImplementations§
Source§impl WeightTensorSpec
impl WeightTensorSpec
pub fn logical_elements(&self) -> Result<u64, VNextError>
pub fn logical_bytes(&self) -> Result<u64, VNextError>
Trait Implementations§
Source§impl Clone for WeightTensorSpec
impl Clone for WeightTensorSpec
Source§fn clone(&self) -> WeightTensorSpec
fn clone(&self) -> WeightTensorSpec
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 WeightTensorSpec
impl Debug for WeightTensorSpec
Source§impl<'de> Deserialize<'de> for WeightTensorSpec
impl<'de> Deserialize<'de> for WeightTensorSpec
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 WeightTensorSpec
Source§impl PartialEq for WeightTensorSpec
impl PartialEq for WeightTensorSpec
Source§impl Serialize for WeightTensorSpec
impl Serialize for WeightTensorSpec
impl StructuralPartialEq for WeightTensorSpec
Auto Trait Implementations§
impl Freeze for WeightTensorSpec
impl RefUnwindSafe for WeightTensorSpec
impl Send for WeightTensorSpec
impl Sync for WeightTensorSpec
impl Unpin for WeightTensorSpec
impl UnsafeUnpin for WeightTensorSpec
impl UnwindSafe for WeightTensorSpec
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