Skip to content

Conversation

@zasdfgbnm
Copy link
Collaborator

To reduce the chance of conflicts, not all ops are fixed. Ops starting with letter f will be fixed in separate PR.

@zasdfgbnm zasdfgbnm requested a review from mruberry August 25, 2020 22:16
Copy link
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Thank you!

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.

@dr-ci
Copy link

dr-ci bot commented Aug 25, 2020

💊 CI failures summary and remediations

As of commit c054df5 (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 17 times.

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.

@zasdfgbnm
Copy link
Collaborator Author

@mruberry
I don't know why trivial changes like this can cause docs build to fail, but the problem is:

The docs build on circle ci is failing with

/home/gaoxiang/.local/lib/python3.8/site-packages/torch/__init__.py:docstring of torch.bmm:: WARNING: more than one target found for cross-reference 'bool': torch.FloatStorage.bool, torch.Tensor.bool                                                                         
LaTeX-incompatible input and strict mode is set to 'warn': Unrecognized Unicode character "−" (8722) [unknownSymbol]                                                                                                                                                            
/home/gaoxiang/.local/lib/python3.8/site-packages/torch/__init__.py:docstring of torch.eye:: WARNING: more than one target found for cross-reference 'bool': torch.FloatStorage.bool, torch.Tensor.bool                                                                         
LaTeX-incompatible input and strict mode is set to 'warn': In LaTeX, \\ or \newline does nothing in display mode [newLineInDisplayMode]

which can be fixed by replacing the bool with

:class:`bool`

and generated docs are slightly different:

Current:
image

After change:
image

Both are correctly cross-referenced, the only difference is format.

Are you OK with this change? An alternative is to revert the change of docs of bmm and eye in this PR.

@mruberry
Copy link
Collaborator

I agree with your assessment of the docs build. We recently enabled doc warnings causing the build to fail, and there are still some kinks to work out. Going with :class:bool sounds fine for now, although we should make a note to file an issue that this occurred so it can be solved in the future.

The failure on other builds, however, seems unrelated to those warnings. test_doc_template seems to be failing but I can't understand why, exactly. The formatting of torch.diag, which it says it's complaining about, appears correct to me. You may just want to revert the bmm, diag, and eye changes and then file two issues for these errors.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants