{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/examples/issues/447","repository_url":"https://api.github.com/repos/pytorch/examples","labels_url":"https://api.github.com/repos/pytorch/examples/issues/447/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/examples/issues/447/comments","events_url":"https://api.github.com/repos/pytorch/examples/issues/447/events","html_url":"https://github.com/pytorch/examples/issues/447","id":381998047,"node_id":"MDU6SXNzdWUzODE5OTgwNDc=","number":447,"title":"Single Node distributed multiprocessing training is not working","user":{"login":"FlappyDoraemon","id":21268127,"node_id":"MDQ6VXNlcjIxMjY4MTI3","avatar_url":"https://avatars2.githubusercontent.com/u/21268127?v=4","gravatar_id":"","url":"https://api.github.com/users/FlappyDoraemon","html_url":"https://github.com/FlappyDoraemon","followers_url":"https://api.github.com/users/FlappyDoraemon/followers","following_url":"https://api.github.com/users/FlappyDoraemon/following{/other_user}","gists_url":"https://api.github.com/users/FlappyDoraemon/gists{/gist_id}","starred_url":"https://api.github.com/users/FlappyDoraemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlappyDoraemon/subscriptions","organizations_url":"https://api.github.com/users/FlappyDoraemon/orgs","repos_url":"https://api.github.com/users/FlappyDoraemon/repos","events_url":"https://api.github.com/users/FlappyDoraemon/events{/privacy}","received_events_url":"https://api.github.com/users/FlappyDoraemon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-18T20:41:32Z","updated_at":"2018-11-28T06:48:08Z","closed_at":null,"author_association":"NONE","body":"Hi, I wanted to train a model on imagenet with single node distributed multiprocssing. Here is the error log:\r\n\r\nStart training\r\nStart training\r\nStart training\r\nStart training\r\nTraceback (most recent call last):\r\n  File \"main_multiprocessing_distributed.py\", line 483, in <module>\r\n    mp.spawn(main_worker, nprocs=ngpus_per_node, args=(ngpus_per_node, args))\r\n  File \"/home/libi/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py\", line 141, in spawn\r\n    while not spawn_context.join():\r\n  File \"/home/libi/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py\", line 91, in join\r\n    raise Exception(msg)\r\nException: \r\n\r\n-- Process 1 terminated with the following error:\r\nTraceback (most recent call last):\r\n  File \"/home/libi/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py\", line 11, in _wrap\r\n    fn(i, *args)\r\n  File \"/home/han424/projects/PCN/PCN_imagenet/main_multiprocessing_distributed.py\", line 254, in main_worker\r\n    train(train_loader, model, criterion, optimizer, epoch, args)\r\n  File \"/home/han424/projects/PCN/PCN_imagenet/main_multiprocessing_distributed.py\", line 289, in train\r\n    for i, (input, target) in enumerate(train_loader):\r\n  File \"/home/libi/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py\", line 819, in __iter__\r\n    return _DataLoaderIter(self)\r\n  File \"/home/libi/anaconda3/lib/python3.7/site-packages/torch/utils/data/dataloader.py\", line 560, in __init__\r\n    w.start()\r\n  File \"/home/libi/anaconda3/lib/python3.7/multiprocessing/process.py\", line 110, in start\r\n    'daemonic processes are not allowed to have children'\r\nAssertionError: daemonic processes are not allowed to have children\r\n\r\nI would be thankful to any advice on it."},"comment":{"url":"https://api.github.com/repos/pytorch/examples/issues/comments/442338681","html_url":"https://github.com/pytorch/examples/issues/447#issuecomment-442338681","issue_url":"https://api.github.com/repos/pytorch/examples/issues/447","id":442338681,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjMzODY4MQ==","user":{"login":"mosjoker","id":40882852,"node_id":"MDQ6VXNlcjQwODgyODUy","avatar_url":"https://avatars2.githubusercontent.com/u/40882852?v=4","gravatar_id":"","url":"https://api.github.com/users/mosjoker","html_url":"https://github.com/mosjoker","followers_url":"https://api.github.com/users/mosjoker/followers","following_url":"https://api.github.com/users/mosjoker/following{/other_user}","gists_url":"https://api.github.com/users/mosjoker/gists{/gist_id}","starred_url":"https://api.github.com/users/mosjoker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosjoker/subscriptions","organizations_url":"https://api.github.com/users/mosjoker/orgs","repos_url":"https://api.github.com/users/mosjoker/repos","events_url":"https://api.github.com/users/mosjoker/events{/privacy}","received_events_url":"https://api.github.com/users/mosjoker/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T06:48:08Z","updated_at":"2018-11-28T06:48:08Z","author_association":"NONE","body":"maybe num_works(default: 4) > 0 cause it ?"}}
{"actor":{"display_login":"mosjoker"}}