New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[T.F 2.0 API Docs] Adding details for acosh math function #29016
Conversation
@dynamicwebpaige This address the issue #25802. |
Given an input tensor, the function computes inverse hyperbolic cosine of every element. | ||
Input range is [1, infinity). It returns `nan` if the input lies outside the range. | ||
```python | ||
tensor `x` is [-2, -0.5, 1, 1.2, 200, 10000] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please write examples as code, in this case:
x = [-2, -0.5, 1, 1.2, 200, 10000]
@@ -1,4 +1,11 @@ | |||
op { | |||
graph_op_name: "Acosh" | |||
summary: "Computes inverse hyperbolic cosine of x element-wise." | |||
description: <<END | |||
Given an input tensor, the function computes inverse hyperbolic cosine of every element. | |||
Input range is [1, infinity). It returns `nan` if the input lies outside the range. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say inf instead of infinity
Please put backticks around [1, inf)
so it renders as code.
Given an input tensor, the function computes inverse hyperbolic cosine of every element. | ||
Input range is [1, infinity). It returns `nan` if the input lies outside the range. | ||
```python | ||
tensor `x` is [-2, -0.5, 1, 1.2, 200, 10000] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be good to add inf to x, so readers know what happens.
Thanks, @martinwicke for the review |
@@ -3,9 +3,10 @@ op { | |||
summary: "Computes inverse hyperbolic cosine of x element-wise." | |||
description: <<END | |||
Given an input tensor, the function computes inverse hyperbolic cosine of every element. | |||
Input range is [1, infinity). It returns `nan` if the input lies outside the range. | |||
Input range is `[1, inf)`. It returns `nan` if the input lies outside the range. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the output below is correct, then the input range is [1, inf]
, since inf -> inf, not inf -> nan.
|
@martinwicke Completed changes. Please let me know if this looks good. |
PiperOrigin-RevId: 251881337
Referring to issue #25802
Added:
In order to reflect in doc, should I change in any file?
Thanks.