You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the main problem is torch.utils.data uses different behavior on different platforms
In MacOS and Windows it uses spawn() on Unix it uses fork() for multiprocessing.
So if we were running a script we should wrap our main script in a if __name__ == "__main__": that will solve the problem but in Jupyter notebooks this also doesn't work so if we want to create a solution for both notebooks and script the best thing come to my mind is checking the platform and setting the num_workers according to that.
Add Link
https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html
Describe the bug
Fails in CI and locally on MacOS with:
The tutorial was disabled in: #2842 - can be enabled after the issue is resolved.
Describe your environment
cc @datumbox @nairbv @fmassa @NicolasHug @YosuaMichael @sekyondaMeta @kit1980
The text was updated successfully, but these errors were encountered: