pub struct StoredTensor {
pub dtype: Dtype,
pub shape: Vec<u64>,
pub byte_strides: Vec<u64>,
pub data: DataSpan,
}Expand description
Byte strides also describe interleaved records without introducing a table-specific layout or treating packed 4-bit values as addressable bytes.
Fields§
§dtype: DtypeType of the addressable storage elements, such as packed U32 words.
shape: Vec<u64>Dimensions of the stored elements.
byte_strides: Vec<u64>Byte distance between adjacent elements along each axis.
data: DataSpanByte range containing the view, including any gaps between elements.
Implementations§
Source§impl StoredTensor
impl StoredTensor
Trait Implementations§
Source§impl Clone for StoredTensor
impl Clone for StoredTensor
Source§fn clone(&self) -> StoredTensor
fn clone(&self) -> StoredTensor
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 StoredTensor
impl Debug for StoredTensor
Source§impl<'de> Deserialize<'de> for StoredTensor
impl<'de> Deserialize<'de> for StoredTensor
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
Auto Trait Implementations§
impl Freeze for StoredTensor
impl RefUnwindSafe for StoredTensor
impl Send for StoredTensor
impl Sync for StoredTensor
impl Unpin for StoredTensor
impl UnsafeUnpin for StoredTensor
impl UnwindSafe for StoredTensor
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