コード例 #1
0
ファイル: tanh.py プロジェクト: yli96/probability
 def _inverse(self, y):
     return tf.atanh(y)
コード例 #2
0
def artanh(x):
    eps = BALL_EPS[x.dtype]
    return tf.atanh(tf.minimum(tf.maximum(x, -1 + eps), 1 - eps))