pub struct TensorViewRef<'a> { /* private fields */ }Expand description
A borrowed window onto one tensor’s bytes, widening to f32 on read.
Holds no owned element storage: the BF16 (or F32) bytes stay exactly where they were mapped.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for TensorViewRef<'a>
impl<'a> Clone for TensorViewRef<'a>
Source§fn clone(&self) -> TensorViewRef<'a>
fn clone(&self) -> TensorViewRef<'a>
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 moreimpl<'a> Copy for TensorViewRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TensorViewRef<'a>
impl<'a> RefUnwindSafe for TensorViewRef<'a>
impl<'a> Send for TensorViewRef<'a>
impl<'a> Sync for TensorViewRef<'a>
impl<'a> Unpin for TensorViewRef<'a>
impl<'a> UnsafeUnpin for TensorViewRef<'a>
impl<'a> UnwindSafe for TensorViewRef<'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