We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method
how to solve this problem?
an answer says: torch.multiprocessing.set_start_method('spawn') but where to add this line?
The text was updated successfully, but these errors were encountered:
In this line, you can change fork to either spawn or forkserver to make the code work.
fork
spawn
forkserver
pycls/pycls/core/distributed.py
Line 144 in 0ddcc2b
Sorry, something went wrong.
No branches or pull requests
RuntimeError: Cannot re-initialize CUDA in forked subprocess. To use CUDA with multiprocessing, you must use the 'spawn' start method
how to solve this problem?
an answer says: torch.multiprocessing.set_start_method('spawn')
but where to add this line?
The text was updated successfully, but these errors were encountered: