Go: Update generated wrapper functions for TensorFlow ops.
PiperOrigin-RevId: 332519141 Change-Id: I2f3c9e81909ad0c1f4d0131501f0c990381889d5
This commit is contained in:
parent
cd31fd0ce0
commit
e84a6501eb
@ -21930,10 +21930,12 @@ func TanhGrad(scope *Scope, y tf.Output, dy tf.Output) (z tf.Output) {
|
||||
// element in the tensor. Input range is `[-inf, inf]` and
|
||||
// output range is `[-1,1]`.
|
||||
//
|
||||
// ```python
|
||||
// x = tf.constant([-float("inf"), -5, -0.5, 1, 1.2, 2, 3, float("inf")])
|
||||
// tf.math.tanh(x) ==> [-1. -0.99990916 -0.46211717 0.7615942 0.8336547 0.9640276 0.9950547 1.]
|
||||
// ```
|
||||
// >>> x = tf.constant([-float("inf"), -5, -0.5, 1, 1.2, 2, 3, float("inf")])
|
||||
// >>> tf.math.tanh(x)
|
||||
// <tf.Tensor: shape=(8,), dtype=float32, numpy=
|
||||
// array([-1. , -0.99990916, -0.46211717, 0.7615942 , 0.8336547 ,
|
||||
// 0.9640276 , 0.9950547 , 1. ], dtype=float32)>
|
||||
//
|
||||
func Tanh(scope *Scope, x tf.Output) (y tf.Output) {
|
||||
if scope.Err() != nil {
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user