Skip to content
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

Enhance docstring for ToDeviced #2864

Closed
yiheng-wang-nv opened this issue Aug 30, 2021 · 1 comment · Fixed by #2874
Closed

Enhance docstring for ToDeviced #2864

yiheng-wang-nv opened this issue Aug 30, 2021 · 1 comment · Fixed by #2874
Assignees
Labels
enhancement New feature or request

Comments

@yiheng-wang-nv
Copy link
Contributor

It seems ToDeviced cannot work when num_workers > 1:

RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method

Shall we add the docstring for this transform, thus users can avoid meeting error?

@Nic-Ma
Copy link
Contributor

Nic-Ma commented Aug 30, 2021

Thanks for raising it.
I will try to enhance the doc-string ASAP.

Thanks.

@Nic-Ma Nic-Ma added the enhancement New feature or request label Aug 30, 2021
@Nic-Ma Nic-Ma added this to the Bug Fixes or Misc improvements milestone Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants