{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/871","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/871/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/871/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/871/events","html_url":"https://github.com/dmlc/mxnet/issues/871","id":121152937,"number":871,"title":"Error with GPU","user":{"login":"zhaofan0622","id":15180002,"avatar_url":"https://avatars.githubusercontent.com/u/15180002?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaofan0622","html_url":"https://github.com/zhaofan0622","followers_url":"https://api.github.com/users/zhaofan0622/followers","following_url":"https://api.github.com/users/zhaofan0622/following{/other_user}","gists_url":"https://api.github.com/users/zhaofan0622/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaofan0622/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaofan0622/subscriptions","organizations_url":"https://api.github.com/users/zhaofan0622/orgs","repos_url":"https://api.github.com/users/zhaofan0622/repos","events_url":"https://api.github.com/users/zhaofan0622/events{/privacy}","received_events_url":"https://api.github.com/users/zhaofan0622/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-09T03:39:29Z","updated_at":"2015-12-09T07:50:02Z","closed_at":null,"body":"(1) I can run the demo using GPU successfuly.\r\n\"python example/image-classification/train_mnist.py --network lenet --gpus 0\"\r\n\r\n(2) I can run my own model using CPU successfuly.\r\n\r\n(3) When I run my model using GPU, I get an error:\r\n\r\n[10:36:06] ./dmlc-core/include/dmlc/logging.h:208: [10:36:06] src/engine/./threaded_engine.h:295: [10:36:06] ./mshadow/mshadow/././cuda/tensor_gpu-inl.cuh:281: Check failed: (dst.size(0)) == (label.size(0)) SoftmaxGrad: label shape mismatch\r\nAn fatal error occurred in asynchronous engine operation. If you do not know what caused this error, you can try set environment variable MXNET_ENGINE_TYPEto NaiveEngine and run with debugger (i.e. gdb). This will force all operations to be synchronous and backtrace will give you the series of calls that lead to this error. Remember to set MXNET_ENGINE_TYPE back to empty after debugging.\r\nterminate called after throwing an instance of 'dmlc::Error'\r\n  "},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/163142751","html_url":"https://github.com/dmlc/mxnet/issues/871#issuecomment-163142751","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/871","id":163142751,"user":{"login":"piiswrong","id":568948,"avatar_url":"https://avatars.githubusercontent.com/u/568948?v=3","gravatar_id":"","url":"https://api.github.com/users/piiswrong","html_url":"https://github.com/piiswrong","followers_url":"https://api.github.com/users/piiswrong/followers","following_url":"https://api.github.com/users/piiswrong/following{/other_user}","gists_url":"https://api.github.com/users/piiswrong/gists{/gist_id}","starred_url":"https://api.github.com/users/piiswrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piiswrong/subscriptions","organizations_url":"https://api.github.com/users/piiswrong/orgs","repos_url":"https://api.github.com/users/piiswrong/repos","events_url":"https://api.github.com/users/piiswrong/events{/privacy}","received_events_url":"https://api.github.com/users/piiswrong/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T07:50:02Z","updated_at":"2015-12-09T07:50:02Z","body":"your label shape is wrong. check if you have an extra dimension "}}