pub struct AddScalarExpr<T: TensorElement, E: Expression<T>> { /* private fields */ }Expand description
Expression representing scalar addition
Trait Implementations§
Source§impl<T: TensorElement + Add<Output = T>, E: Expression<T>> Expression<T> for AddScalarExpr<T, E>
impl<T: TensorElement + Add<Output = T>, E: Expression<T>> Expression<T> for AddScalarExpr<T, E>
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, E> Freeze for AddScalarExpr<T, E>
impl<T, E> RefUnwindSafe for AddScalarExpr<T, E>where
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for AddScalarExpr<T, E>where
E: Send,
impl<T, E> Sync for AddScalarExpr<T, E>where
E: Sync,
impl<T, E> Unpin for AddScalarExpr<T, E>
impl<T, E> UnsafeUnpin for AddScalarExpr<T, E>where
E: UnsafeUnpin,
T: UnsafeUnpin,
impl<T, E> UnwindSafe for AddScalarExpr<T, E>where
E: UnwindSafe,
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
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