pub struct View<'a> {
pub name: &'a str,
pub dtype: DType,
pub shape: &'a [usize],
pub bytes: &'a [u8],
}Expand description
A borrowed tensor.
Fields§
§name: &'a strThe tensor’s name.
dtype: DTypeIts element type.
shape: &'a [usize]Its shape.
bytes: &'a [u8]Its bytes, little endian, row major.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for View<'a>
impl<'a> RefUnwindSafe for View<'a>
impl<'a> Send for View<'a>
impl<'a> Sync for View<'a>
impl<'a> Unpin for View<'a>
impl<'a> UnsafeUnpin for View<'a>
impl<'a> UnwindSafe for View<'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