pub struct TensorMut<'s, T> { /* private fields */ }Expand description
Checked mutable device span of a GPU-backed tensor.
Only obtainable from an exclusive &mut tensor borrow or a fresh output.
Implementations§
Auto Trait Implementations§
impl<'s, T> !Send for TensorMut<'s, T>
impl<'s, T> !Sync for TensorMut<'s, T>
impl<'s, T> Freeze for TensorMut<'s, T>
impl<'s, T> RefUnwindSafe for TensorMut<'s, T>where
T: RefUnwindSafe,
impl<'s, T> Unpin for TensorMut<'s, T>where
T: Unpin,
impl<'s, T> UnsafeUnpin for TensorMut<'s, T>
impl<'s, T> UnwindSafe for TensorMut<'s, T>where
T: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more