我们可以调用tf.nn.relu或tf.nn.softplus等等。
tf.nn.relu
tf.nn.softplus
我还看到了tf.tanh。
tf.tanh
在Tensorflow中是否有一个逆双曲正切函数?
发布于 2016-11-16 16:32:09
不,但你可以用以下的方式来表达:
artanh(x) = 1/2 * ln ((1 + x)/(1 - x))
请参阅:作为对数的反函数
https://stackoverflow.com/questions/40637216
相似问题