diff --git a/cudarray/nnet/math.py b/cudarray/nnet/math.py index f91bb61..9ad1dce 100644 --- a/cudarray/nnet/math.py +++ b/cudarray/nnet/math.py @@ -19,6 +19,8 @@ def sigmoid(x, out=None): def sigmoid_d(x, out=None): return unary(elementwise.sigmoid_d_op, x, out) +def tanh(x, out=None): + return unary(elementwise.tanh_op, x, out) def tanh_d(x, out=None): return unary(elementwise.tanh_d_op, x, out)