pub struct Op { /* private fields */ }
Expand description
Op is the Rc wrapper of typed op trait
Read the input, do the calculation and write result to output.
Called by compute_grapyh.
Given input and output_grad, return input_grad (forward view)
Called by compute_grapyh.
access weight/paramenters
return gradient for weight/parameters.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,