pub enum TapeNode {
Const(f64),
Input(usize),
Add(usize, usize),
Sub(usize, usize),
Mul(usize, usize),
Div(usize, usize),
Sin(usize),
Cos(usize),
Exp(usize),
Ln(usize),
Sqrt(usize),
Recip(usize),
}Expand description
Variants§
Const(f64)
A constant with the given value.
Input(usize)
An independent input bound to the given gradient slot.
Add(usize, usize)
Sum of the two operand nodes.
Sub(usize, usize)
Difference of the two operand nodes (first minus second).
Mul(usize, usize)
Product of the two operand nodes.
Div(usize, usize)
Quotient of the two operand nodes (first divided by second).
Sin(usize)
Sine of the operand node.
Cos(usize)
Cosine of the operand node.
Exp(usize)
Exponential of the operand node.
Ln(usize)
Natural logarithm of the operand node.
Sqrt(usize)
Square root of the operand node.
Recip(usize)
Reciprocal of the operand node.
Trait Implementations§
impl StructuralPartialEq for TapeNode
Auto Trait Implementations§
impl Freeze for TapeNode
impl RefUnwindSafe for TapeNode
impl Send for TapeNode
impl Sync for TapeNode
impl Unpin for TapeNode
impl UnsafeUnpin for TapeNode
impl UnwindSafe for TapeNode
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