{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/3713","repository_url":"https://api.github.com/repos/dmlc/mxnet","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/3713/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/3713/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/3713/events","html_url":"https://github.com/dmlc/mxnet/issues/3713","id":187028085,"number":3713,"title":"Can't use self-defined optimizer when training with multiple nodes","user":{"login":"FreemanX","id":9710644,"avatar_url":"https://avatars.githubusercontent.com/u/9710644?v=3","gravatar_id":"","url":"https://api.github.com/users/FreemanX","html_url":"https://github.com/FreemanX","followers_url":"https://api.github.com/users/FreemanX/followers","following_url":"https://api.github.com/users/FreemanX/following{/other_user}","gists_url":"https://api.github.com/users/FreemanX/gists{/gist_id}","starred_url":"https://api.github.com/users/FreemanX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreemanX/subscriptions","organizations_url":"https://api.github.com/users/FreemanX/orgs","repos_url":"https://api.github.com/users/FreemanX/repos","events_url":"https://api.github.com/users/FreemanX/events{/privacy}","received_events_url":"https://api.github.com/users/FreemanX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-03T10:55:12Z","updated_at":"2016-11-05T03:52:23Z","closed_at":null,"body":"When I try the example https://github.com/dmlc/mxnet/blob/master/example/image-classification/train_cifar10_resnet.py with multiple nodes, the error shows as follows:\r\n\r\nFile \"_ctypes/callbacks.c\", line 314, in 'calling callback function'\r\n  File \"/usr/local/lib/python2.7/site-packages/mxnet-0.7.0-py2.7.egg/mxnet/kvstore_server.py\", line 38, in server_controller\r\n    optimizer = pickle.loads(cmd_body)\r\n  File \"/usr/lib64/python2.7/pickle.py\", line 1382, in loads\r\n    return Unpickler(file).load()\r\n  File \"/usr/lib64/python2.7/pickle.py\", line 858, in load\r\n    dispatch[key](self)\r\n  File \"/usr/lib64/python2.7/pickle.py\", line 1090, in load_global\r\n    klass = self.find_class(module, name)\r\n  File \"/usr/lib64/python2.7/pickle.py\", line 1126, in find_class\r\n    klass = getattr(mod, name)\r\nAttributeError: 'module' object has no attribute 'Nesterov'\r\n\r\nHow to pass the self-defined optimizer to kv store server?  Thanks!"},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/258588921","html_url":"https://github.com/dmlc/mxnet/issues/3713#issuecomment-258588921","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/3713","id":258588921,"user":{"login":"FreemanX","id":9710644,"avatar_url":"https://avatars.githubusercontent.com/u/9710644?v=3","gravatar_id":"","url":"https://api.github.com/users/FreemanX","html_url":"https://github.com/FreemanX","followers_url":"https://api.github.com/users/FreemanX/followers","following_url":"https://api.github.com/users/FreemanX/following{/other_user}","gists_url":"https://api.github.com/users/FreemanX/gists{/gist_id}","starred_url":"https://api.github.com/users/FreemanX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreemanX/subscriptions","organizations_url":"https://api.github.com/users/FreemanX/orgs","repos_url":"https://api.github.com/users/FreemanX/repos","events_url":"https://api.github.com/users/FreemanX/events{/privacy}","received_events_url":"https://api.github.com/users/FreemanX/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T03:52:23Z","updated_at":"2016-11-05T03:52:23Z","body":"It worked... Somehow the environment PYTHONPATH of my own has lower priority than the system's default python path and I was using the unchanged optimizer.py all the time. I override sys.path and the ball can roll~\r\nThank you guys for your help!"}}
{"actor":{"display_login":"FreemanX"}}