Trait microtensor::UnaryOp
source · pub trait UnaryOp<T: Real>: Debug + Send + Sync + Serialize + Deserialize {
// Required methods
fn run(&self, lhs: &Tensor<T>) -> Tensor<T>;
fn derive(&self, lhs: &Tensor<T>, grad: &Tensor<T>) -> Tensor<T>;
}
Expand description
Unary computational operation that can also compute its derivative.