pub struct SubExpr<T: TensorElement, E1: Expression<T>, E2: Expression<T>> { /* private fields */ }Expand description
Expression representing element-wise subtraction
Trait Implementations§
Source§impl<T: TensorElement + Sub<Output = T>, E1: Expression<T>, E2: Expression<T>> Expression<T> for SubExpr<T, E1, E2>
impl<T: TensorElement + Sub<Output = T>, E1: Expression<T>, E2: Expression<T>> Expression<T> for SubExpr<T, E1, E2>
Source§fn eval_tensor(
&self,
shape: Vec<usize>,
device: DeviceType,
) -> Result<Tensor<T>>where
T: Copy,
fn eval_tensor(
&self,
shape: Vec<usize>,
device: DeviceType,
) -> Result<Tensor<T>>where
T: Copy,
Evaluate the expression into a tensor
Auto Trait Implementations§
impl<T, E1, E2> Freeze for SubExpr<T, E1, E2>
impl<T, E1, E2> RefUnwindSafe for SubExpr<T, E1, E2>
impl<T, E1, E2> Send for SubExpr<T, E1, E2>
impl<T, E1, E2> Sync for SubExpr<T, E1, E2>
impl<T, E1, E2> Unpin for SubExpr<T, E1, E2>
impl<T, E1, E2> UnsafeUnpin for SubExpr<T, E1, E2>where
E1: UnsafeUnpin,
E2: UnsafeUnpin,
impl<T, E1, E2> UnwindSafe for SubExpr<T, E1, E2>
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
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