pub struct TensorMeta<T: CommonBounds, B: TensorCreator<T, Output = B> + Clone + TensorInfo<T>> {
    pub begin: usize,
    pub shape: Vec<i64>,
    pub strides: Vec<i64>,
    pub size: usize,
    pub dtype: String,
    pub compression_algo: CompressionAlgo,
    pub endian: Endian,
    pub indices: Vec<(usize, usize, usize, usize)>,
    pub phantom: PhantomData<(T, B)>,
}Expand description
the meta data of the tensor
Fields§
§begin: usize§shape: Vec<i64>§strides: Vec<i64>§size: usize§dtype: String§compression_algo: CompressionAlgo§endian: Endian§indices: Vec<(usize, usize, usize, usize)>§phantom: PhantomData<(T, B)>Trait Implementations§
Source§impl<'de, T: CommonBounds, B: TensorCreator<T, Output = B> + Clone + TensorInfo<T>> Deserialize<'de> for TensorMeta<T, B>
 
impl<'de, T: CommonBounds, B: TensorCreator<T, Output = B> + Clone + TensorInfo<T>> Deserialize<'de> for TensorMeta<T, B>
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
Source§impl<T: CommonBounds + FromBytes<Bytes = [u8; N]>, B: TensorCreator<T, Output = B> + Clone + TensorInfo<T> + Display, const N: usize> MetaLoad for TensorMeta<T, B>
 
impl<T: CommonBounds + FromBytes<Bytes = [u8; N]>, B: TensorCreator<T, Output = B> + Clone + TensorInfo<T> + Display, const N: usize> MetaLoad for TensorMeta<T, B>
Source§impl<T: CommonBounds, B: TensorCreator<T, Output = B> + Clone + TensorInfo<T>> Serialize for TensorMeta<T, B>
 
impl<T: CommonBounds, B: TensorCreator<T, Output = B> + Clone + TensorInfo<T>> Serialize for TensorMeta<T, B>
Auto Trait Implementations§
impl<T, B> Freeze for TensorMeta<T, B>
impl<T, B> RefUnwindSafe for TensorMeta<T, B>where
    T: RefUnwindSafe,
    B: RefUnwindSafe,
impl<T, B> Send for TensorMeta<T, B>where
    B: Send,
impl<T, B> Sync for TensorMeta<T, B>where
    B: Sync,
impl<T, B> Unpin for TensorMeta<T, B>
impl<T, B> UnwindSafe for TensorMeta<T, B>where
    T: UnwindSafe,
    B: UnwindSafe,
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