pub enum PhysicalWeightPadding {
Exact,
ZeroFill {
padded_dimensions: Vec<u64>,
},
}Expand description
Padding is always explicit and carries the exact semantic padded shape.
Exact has no hidden storage extension. ZeroFill must increase at least
one dimension and, for tiled or grouped storage, must be the unique minimal
shape implied by that contract.
Variants§
Trait Implementations§
Source§impl Clone for PhysicalWeightPadding
impl Clone for PhysicalWeightPadding
Source§fn clone(&self) -> PhysicalWeightPadding
fn clone(&self) -> PhysicalWeightPadding
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 PhysicalWeightPadding
impl Debug for PhysicalWeightPadding
Source§impl<'de> Deserialize<'de> for PhysicalWeightPadding
impl<'de> Deserialize<'de> for PhysicalWeightPadding
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 PhysicalWeightPadding
Source§impl PartialEq for PhysicalWeightPadding
impl PartialEq for PhysicalWeightPadding
Source§impl Serialize for PhysicalWeightPadding
impl Serialize for PhysicalWeightPadding
impl StructuralPartialEq for PhysicalWeightPadding
Auto Trait Implementations§
impl Freeze for PhysicalWeightPadding
impl RefUnwindSafe for PhysicalWeightPadding
impl Send for PhysicalWeightPadding
impl Sync for PhysicalWeightPadding
impl Unpin for PhysicalWeightPadding
impl UnsafeUnpin for PhysicalWeightPadding
impl UnwindSafe for PhysicalWeightPadding
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