Skip to content

Conversation

@mruberry
Copy link
Collaborator

@mruberry mruberry commented Jul 16, 2020

lcm was missing an abs. This adds it plus extends the test for NumPy compliance. Also includes a few doc fixes.

@mruberry mruberry requested a review from ngimel July 16, 2020 19:50
@dr-ci
Copy link

dr-ci bot commented Jul 16, 2020

💊 CI failures summary and remediations

As 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.

See how this bot performed.

This comment has been revised 3 times.

r"""
isnan(input) -> Tensor
Returns a new tensor with boolean elements representing if each element is `NaN` or not.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

each element of input

Copy link
Collaborator Author

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}
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

@facebook-github-bot
Copy link
Contributor

@mruberry merged this pull request in a874c1e.

@mruberry mruberry deleted the abs_lcm branch August 21, 2020 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants