Use unittest assertWarns instead#36411
Closed
wanchaol wants to merge 3 commits intogh/wanchaol/96/basefrom
Closed
Conversation
This PR remove pytorch specific defined assertwarns and use the unit test one, also format some tests [ghstack-poisoned]
This was referenced Apr 10, 2020
💊 Build failures summary and remediationsAs of commit c71f896 (more details on the Dr. CI page):
ci.pytorch.orgThis 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. This comment has been revised 10 times. |
mrshenli
approved these changes
Apr 13, 2020
Contributor
mrshenli
left a comment
There was a problem hiding this comment.
stamping for data_parallel related changes.
| super(M, self).__init__() | ||
| self.p0 = nn.Parameter(torch.tensor([0.3], dtype=torch.float, | ||
| device=cpu_device_str)) | ||
| device=cpu_device_str)) |
This PR remove pytorch specific defined assertwarns and use the unit test one, also format some tests [ghstack-poisoned]
This PR remove pytorch specific defined assertwarns and use the unit test one, also format some tests [ghstack-poisoned]
Contributor
1 similar comment
Contributor
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 24, 2026
Summary: Pull Request resolved: pytorch#36411 This PR remove pytorch specific defined assertwarns and use the unit test one, also format some tests Test Plan: Imported from OSS Differential Revision: D20998159 Pulled By: wanchaol fbshipit-source-id: 1280ecff2dd293b95a639d13cc7417fc819c2201
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
This PR remove pytorch specific defined assertwarns and use the unit
test one, also format some tests
Differential Revision: D20998159