pub struct TensorExpr<'a, T: TensorElement> { /* private fields */ }Expand description
Expression representing a tensor reference
Implementations§
Source§impl<'a, T: TensorElement + Copy> TensorExpr<'a, T>
impl<'a, T: TensorElement + Copy> TensorExpr<'a, T>
Trait Implementations§
Source§impl<'a, T: TensorElement> Expression<T> for TensorExpr<'a, T>
impl<'a, T: TensorElement> Expression<T> for TensorExpr<'a, T>
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<'a, T> Freeze for TensorExpr<'a, T>
impl<'a, T> RefUnwindSafe for TensorExpr<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for TensorExpr<'a, T>
impl<'a, T> Sync for TensorExpr<'a, T>
impl<'a, T> Unpin for TensorExpr<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for TensorExpr<'a, T>
impl<'a, T> UnwindSafe for TensorExpr<'a, T>where
T: RefUnwindSafe + 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