Merge pull request #29020 from SSaishruthi:tf_2.0_changes_2
PiperOrigin-RevId: 254051525
This commit is contained in:
commit
c3f3aa8c9a
@ -1,4 +1,15 @@
|
||||
op {
|
||||
graph_op_name: "Cos"
|
||||
summary: "Computes cos of x element-wise."
|
||||
description: <<END
|
||||
Given an input tensor, this function computes cosine of every
|
||||
element in the tensor. Input range is `(-inf, inf)` and
|
||||
output range is `[-1,1]`. If input lies outside the boundary, `nan`
|
||||
is returned.
|
||||
|
||||
```python
|
||||
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10000, float("inf")])
|
||||
tf.math.cos(x) ==> [nan -0.91113025 0.87758255 0.5403023 0.36235774 0.48718765 -0.95215535 nan]
|
||||
```
|
||||
END
|
||||
}
|
||||
|
@ -1,4 +1,14 @@
|
||||
op {
|
||||
graph_op_name: "Cosh"
|
||||
summary: "Computes hyperbolic cosine of x element-wise."
|
||||
description: <<END
|
||||
Given an input tensor, this function computes hyperbolic cosine of every
|
||||
element in the tensor. Input range is `[-inf, inf]` and output range
|
||||
is `[1, inf]`.
|
||||
|
||||
```python
|
||||
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 2, 10, float("inf")])
|
||||
tf.math.cosh(x) ==> [inf 4.0515420e+03 1.1276259e+00 1.5430807e+00 1.8106556e+00 3.7621956e+00 1.1013233e+04 inf]
|
||||
```
|
||||
END
|
||||
}
|
||||
|
@ -1,4 +1,14 @@
|
||||
op {
|
||||
graph_op_name: "Sin"
|
||||
summary: "Computes sin of x element-wise."
|
||||
summary: "Computes sine of x element-wise."
|
||||
description: <<END
|
||||
Given an input tensor, this function computes sine of every
|
||||
element in the tensor. Input range is `(-inf, inf)` and
|
||||
output range is `[-1,1]`.
|
||||
|
||||
```python
|
||||
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10, float("inf")])
|
||||
tf.math.sin(x) ==> [nan -0.4121185 -0.47942555 0.84147096 0.9320391 -0.87329733 -0.54402107 nan]
|
||||
```
|
||||
END
|
||||
}
|
||||
|
@ -1,4 +1,15 @@
|
||||
op {
|
||||
graph_op_name: "Sinh"
|
||||
summary: "Computes hyperbolic sine of x element-wise."
|
||||
description: <<END
|
||||
Given an input tensor, this function computes hyperbolic sine of every
|
||||
element in the tensor. Input range is `[-inf,inf]` and output range
|
||||
is `[-inf,inf]`.
|
||||
|
||||
```python
|
||||
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 2, 10, float("inf")])
|
||||
tf.math.sinh(x) ==> [-inf -4.0515420e+03 -5.2109528e-01 1.1752012e+00 1.5094614e+00 3.6268604e+00 1.1013232e+04 inf]
|
||||
```
|
||||
END
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,15 @@
|
||||
op {
|
||||
graph_op_name: "Tan"
|
||||
summary: "Computes tan of x element-wise."
|
||||
description: <<END
|
||||
Given an input tensor, this function computes tangent of every
|
||||
element in the tensor. Input range is `(-inf, inf)` and
|
||||
output range is `(-inf, inf)`. If input lies outside the boundary, `nan`
|
||||
is returned.
|
||||
|
||||
```python
|
||||
x = tf.constant([-float("inf"), -9, -0.5, 1, 1.2, 200, 10000, float("inf")])
|
||||
tf.math.tan(x) ==> [nan 0.45231566 -0.5463025 1.5574077 2.572152 -1.7925274 0.32097113 nan]
|
||||
```
|
||||
END
|
||||
}
|
||||
|
@ -1,4 +1,14 @@
|
||||
op {
|
||||
graph_op_name: "Tanh"
|
||||
summary: "Computes hyperbolic tangent of `x` element-wise."
|
||||
description: <<END
|
||||
Given an input tensor, this function computes hyperbolic tangent of every
|
||||
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.]
|
||||
```
|
||||
END
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user