-
Notifications
You must be signed in to change notification settings - Fork 25.2k
update docstring examples of torch.testing.assert_close
#60163
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
Conversation
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 56c045d (more details on the Dr. CI page and at hud.pytorch.org/pr/60163): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 Preview docs built from this PR 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 to the (internal) Dr. CI Users group. |
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? ghstack-source-id: 89b43a5 Pull Request resolved: #60163
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? [ghstack-poisoned]
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? [ghstack-poisoned]
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? [ghstack-poisoned]
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? [ghstack-poisoned]
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? [ghstack-poisoned]
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.
Neat.
We do have some doc testing, but I'm never sure how it works. @peterbell10 just started running some examples as tests, maybe check with him?
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? [ghstack-poisoned]
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? [ghstack-poisoned]
I've added a doctest for |
Changes to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a [`doctest`](https://docs.python.org/3/library/doctest.html). @mruberry do you know why we don't have such a check? [ghstack-poisoned]
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Stack from ghstack:
msg
intorch.testing.assert_close
#60254 tests for diagnostics in callablemsg
intorch.testing.assert_close
torch.testing.assert_close
#60163 update docstring examples oftorch.testing.assert_close
torch.testing.assert_close
in case of mismatching values #60091 Improve error messages oftorch.testing.assert_close
in case of mismatching valuesChanges to the default error message in case of mismatching values need to be reflected in the examples given in the docstring. Normally this should be enforced by a
doctest
. @mruberry do you know why we don't have such a check?Differential Revision: D29556353