-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[PyTorch] Add unit test for c10::Synchronized<T> #74110
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
Since this class was added, it's missing a unit test. @dbort first noticed it, so adding one in this commit. Differential Revision: [D34822911](https://our.internmc.facebook.com/intern/diff/D34822911/) [ghstack-poisoned]
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 5003172 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
Since this class was added, it's missing a unit test. dbort first noticed it, so adding one in this commit. Differential Revision: [D34822911](https://our.internmc.facebook.com/intern/diff/D34822911/) [ghstack-poisoned]
Since this class was added, it's missing a unit test. dbort first noticed it, so adding one in this commit. Differential Revision: [D34822911](https://our.internmc.facebook.com/intern/diff/D34822911/) [ghstack-poisoned]
Pull Request resolved: #74110 Since this class was added, it's missing a unit test. @dbort first noticed it, so adding one in this commit. ghstack-source-id: 151157422 Differential Revision: [D34822911](https://our.internmc.facebook.com/intern/diff/D34822911/)
dbort
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.
For posterity, looks like this is a second take of reverted PR #74062
| t.join(); | ||
| } | ||
|
|
||
| iv.withLock([](int& iv) { EXPECT_EQ(iv, NUM_LOOP_INCREMENTS * 10); }); |
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.
Consider using threads.size() instead of 10
Since this class was added, it's missing a unit test. dbort first noticed it, so adding one in this commit. Differential Revision: [D34822911](https://our.internmc.facebook.com/intern/diff/D34822911/) [ghstack-poisoned]
Pull Request resolved: #74110 Since this class was added, it's missing a unit test. @dbort first noticed it, so adding one in this commit. ghstack-source-id: 151471746 Differential Revision: [D34822911](https://our.internmc.facebook.com/intern/diff/D34822911/)
Summary: Pull Request resolved: #74110 Since this class was added, it's missing a unit test. dbort first noticed it, so adding one in this commit. ghstack-source-id: 151471746 Test Plan: `buck test //xplat/caffe2/c10:c10_test` Reviewed By: dbort Differential Revision: D34822911 fbshipit-source-id: 919a125081a2093d6f4e5a2cdb008145c05ec803
|
Hey @dhruvbird. |
Stack from ghstack (oldest at bottom):
Since this class was added, it's missing a unit test. @dbort first noticed it, so adding one in this commit.
Differential Revision: D34822911