pub struct RawTensor<'a> {
pub dtype: KdaDtype,
pub shape: Vec<usize>,
pub bytes: &'a [u8],
}Expand description
One tensor as it sits in the checkpoint: dtype, shape and raw little-endian bytes.
Fields§
§dtype: KdaDtype§shape: Vec<usize>§bytes: &'a [u8]Auto Trait Implementations§
impl<'a> Freeze for RawTensor<'a>
impl<'a> RefUnwindSafe for RawTensor<'a>
impl<'a> Send for RawTensor<'a>
impl<'a> Sync for RawTensor<'a>
impl<'a> Unpin for RawTensor<'a>
impl<'a> UnwindSafe for RawTensor<'a>
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