pub enum EagerOp<T> {
ElemUnary {
op: ElemOp,
input: Variable<T>,
output: Variable<T>,
},
ElemBinary {
op: ElemOp,
left: Variable<T>,
right: Variable<T>,
output: Variable<T>,
},
Reduce {
op: ReduceOp,
input: Variable<T>,
axes: Vec<usize>,
output: Variable<T>,
},
Einsum {
spec: String,
inputs: Vec<Variable<T>>,
output: Variable<T>,
},
}Expand description
An operation recorded in the eager execution tape.
Variants§
ElemUnary
Element-wise unary operation
ElemBinary
Element-wise binary operation
Reduce
Reduction operation
Einsum
Einsum operation
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for EagerOp<T>where
T: Freeze,
impl<T> RefUnwindSafe for EagerOp<T>where
T: RefUnwindSafe,
impl<T> Send for EagerOp<T>where
T: Send,
impl<T> Sync for EagerOp<T>where
T: Sync,
impl<T> Unpin for EagerOp<T>where
T: Unpin,
impl<T> UnwindSafe for EagerOp<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