Hello I am trying to build a custom loss function which include using tanh.
if forward pass is y=tanhx
than how should be the backward pass?
In other word what should be the relationship between gradOutput and gradInput?