From f15a608e6c75cdecf731af10c25aedfdc1e63a90 Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Sat, 23 Nov 2019 09:20:34 -0600 Subject: [PATCH] add tf.nn.tanh activation function. --- src/TensorFlowNET.Core/APIs/tf.nn.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TensorFlowNET.Core/APIs/tf.nn.cs b/src/TensorFlowNET.Core/APIs/tf.nn.cs index b2ac4e94..c416c6e8 100644 --- a/src/TensorFlowNET.Core/APIs/tf.nn.cs +++ b/src/TensorFlowNET.Core/APIs/tf.nn.cs @@ -112,6 +112,7 @@ namespace Tensorflow public IActivation relu() => new relu(); public IActivation swish() => new swish(); + public IActivation tanh() => new tanh(); public Tensor relu(Tensor features, string name = null) => gen_nn_ops.relu(features, name);