tanh_rrule

Function tanh_rrule 

Source
pub fn tanh_rrule<S: ScalarAd>(result: S, cotangent: S) -> S
Expand description

Reverse rule for tanh.

Takes the forward result tanh(x), not the input x.