-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Adds missing abs to lcm #41552
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
Adds missing abs to lcm #41552
Conversation
💊 CI failures summary and remediationsAs of commit 2ef0e21 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 3 times. |
torch/_torch_docs.py
Outdated
| r""" | ||
| isnan(input) -> Tensor | ||
| Returns a new tensor with boolean elements representing if each element is `NaN` or not. |
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.
each element of input
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.
Good idea
| Arguments: | ||
| input (Tensor): A tensor to check | ||
| {input} |
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.
you are removing comments that input is a Tensor everywhere - is it universally assumed?
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.
You can see the autogenerated text and formatting for input styled like this in the doc for lgamma, for example: https://pytorch.org/docs/master/generated/torch.lgamma.html?highlight=lgamma#torch.lgamma. So yes, it is assumed.
facebook-github-bot
left a comment
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.
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
lcm was missing an abs. This adds it plus extends the test for NumPy compliance. Also includes a few doc fixes.