-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Added torch::cuda::manual_seed(_all) to mirror torch.cuda.manual_seed(_all) #42638
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
Added torch::cuda::manual_seed(_all) to mirror torch.cuda.manual_seed(_all) #42638
Conversation
…(_all) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit edfd435 (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:
|
|
@ezyang |
|
This probably doesn't belong in the cuda/ folder because it doesn't actually have any direct dependencies on CUDA headers (everything is indirected through Context). Is there a bug report / issue corresponding to this? That would help me assess. |
|
@ezyang pytorch/aten/src/ATen/Context.h Line 241 in df7c059
Please suggest where should this torch.cuda.manual_seed be placed, thanks. |
|
Thanks, the issue helps. There are few things you have to be careful about when writing C++ API ports of PyTorch functionality. (This is mostly directed at @glaringlee, but hopefully this also gives you some useful context @heitorschueroff). The function of directory structure in Python is different than in C++. In Python, Furthermore, we must be careful about distinguishing the So what does this mean for this issue? The user is requesting |
|
@ezyang Thanks a lot, Ed, very useful info to me. |
…manual_seed(_all)" [ghstack-poisoned]
…manual_seed(_all)" [ghstack-poisoned]
glaringlee
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.
LGTM now.
glaringlee
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.
LGTM now
…manual_seed(_all)" Differential Revision: [D23030317](https://our.internmc.facebook.com/intern/diff/D23030317) [ghstack-poisoned]
|
@heitorschueroff merged this pull request in d396d13. |
Stack from ghstack:
Differential Revision: D23030317