{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/4805","repository_url":"https://api.github.com/repos/BVLC/caffe","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/4805/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/4805/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/4805/events","html_url":"https://github.com/BVLC/caffe/pull/4805","id":180818310,"number":4805,"title":"Update caffe.cpp","user":{"login":"yuanzhihang1","id":13333830,"avatar_url":"https://avatars.githubusercontent.com/u/13333830?v=3","gravatar_id":"","url":"https://api.github.com/users/yuanzhihang1","html_url":"https://github.com/yuanzhihang1","followers_url":"https://api.github.com/users/yuanzhihang1/followers","following_url":"https://api.github.com/users/yuanzhihang1/following{/other_user}","gists_url":"https://api.github.com/users/yuanzhihang1/gists{/gist_id}","starred_url":"https://api.github.com/users/yuanzhihang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuanzhihang1/subscriptions","organizations_url":"https://api.github.com/users/yuanzhihang1/orgs","repos_url":"https://api.github.com/users/yuanzhihang1/repos","events_url":"https://api.github.com/users/yuanzhihang1/events{/privacy}","received_events_url":"https://api.github.com/users/yuanzhihang1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-04T06:56:56Z","updated_at":"2016-10-04T23:28:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/BVLC/caffe/pulls/4805","html_url":"https://github.com/BVLC/caffe/pull/4805","diff_url":"https://github.com/BVLC/caffe/pull/4805.diff","patch_url":"https://github.com/BVLC/caffe/pull/4805.patch"},"body":" If there is a GPU in your computer and you enable the CPU_ONLY, you cannot train a net using the build/tools/caffe.bin command becuase the gpus.size() !=0 if you have a GPU and you will run the function Caffe::SetDevice(gpus[0]); then error is reported:\r\n`F1004 13:59:57.352250 4383 common.cpp:66] Cannot use GPU in CPU-only Caffe: check mode.`"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/251542779","html_url":"https://github.com/BVLC/caffe/pull/4805#issuecomment-251542779","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/4805","id":251542779,"user":{"login":"yuanzhihang1","id":13333830,"avatar_url":"https://avatars.githubusercontent.com/u/13333830?v=3","gravatar_id":"","url":"https://api.github.com/users/yuanzhihang1","html_url":"https://github.com/yuanzhihang1","followers_url":"https://api.github.com/users/yuanzhihang1/followers","following_url":"https://api.github.com/users/yuanzhihang1/following{/other_user}","gists_url":"https://api.github.com/users/yuanzhihang1/gists{/gist_id}","starred_url":"https://api.github.com/users/yuanzhihang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuanzhihang1/subscriptions","organizations_url":"https://api.github.com/users/yuanzhihang1/orgs","repos_url":"https://api.github.com/users/yuanzhihang1/repos","events_url":"https://api.github.com/users/yuanzhihang1/events{/privacy}","received_events_url":"https://api.github.com/users/yuanzhihang1/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T23:28:28Z","updated_at":"2016-10-04T23:28:28Z","body":"I checked my prototxt and shell script and found It will always happen no matter you specify --gpu or not. Only if you specipy solver_mode: CPU in the solver.prototxt it will work."}}
{"actor":{"display_login":"yuanzhihang1"}}