pub enum PhysicalStorageLayout {
Contiguous {
padding: PhysicalWeightPadding,
},
Strided {
strides_in_elements: Vec<u64>,
padding: PhysicalWeightPadding,
},
Tiled {
tile_shape: Vec<u64>,
axis_order: Vec<u32>,
tile_strides_in_elements: Vec<u64>,
padding: PhysicalWeightPadding,
},
}Expand description
Storage geometry for one physical component binding. Strides are measured in the component’s schema storage unit: elements for dense encodings, bytes for separate-component packing, and blocks for block quantization. The component’s declared dimensions describe its raw stored span, while this geometry maps the semantic component shape onto that span without inference or hidden padding.
Variants§
Implementations§
Source§impl PhysicalStorageLayout
impl PhysicalStorageLayout
pub fn exact_contiguous() -> Self
Trait Implementations§
Source§impl Clone for PhysicalStorageLayout
impl Clone for PhysicalStorageLayout
Source§fn clone(&self) -> PhysicalStorageLayout
fn clone(&self) -> PhysicalStorageLayout
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 PhysicalStorageLayout
impl Debug for PhysicalStorageLayout
Source§impl<'de> Deserialize<'de> for PhysicalStorageLayout
impl<'de> Deserialize<'de> for PhysicalStorageLayout
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 PhysicalStorageLayout
Source§impl PartialEq for PhysicalStorageLayout
impl PartialEq for PhysicalStorageLayout
Source§impl Serialize for PhysicalStorageLayout
impl Serialize for PhysicalStorageLayout
impl StructuralPartialEq for PhysicalStorageLayout
Auto Trait Implementations§
impl Freeze for PhysicalStorageLayout
impl RefUnwindSafe for PhysicalStorageLayout
impl Send for PhysicalStorageLayout
impl Sync for PhysicalStorageLayout
impl Unpin for PhysicalStorageLayout
impl UnsafeUnpin for PhysicalStorageLayout
impl UnwindSafe for PhysicalStorageLayout
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