Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix: You can't use set_mode in Caffe CPU mode #18

Merged
merged 1 commit into from
Jul 9, 2015

Conversation

mehanig
Copy link
Contributor

@mehanig mehanig commented Jul 9, 2015

Hi, I've tried yours code, and according to this bug: BVLC/caffe#1799 ,
you can't set_mode in CPU mode at all. Caffe fails at this point.
Also, seems like you passing string to gpu variable, but there is no chance for it to be false except empty string, which is't obvious. Now project runs perfect on MacBook inside docker with ubuntu.

The point is that CPU mode is set by default, while you setting it gpu to '0', so you don't need to pass this parameter at all, if your machine can't handle GPU mode. For me it's much clearer solution, but I might be wrong

graphific added a commit that referenced this pull request Jul 9, 2015
bug fix: You can't use set_mode in Caffe CPU mode
@graphific graphific merged commit f30cfd7 into graphific:master Jul 9, 2015
@graphific
Copy link
Owner

ok as I dont have caffe installed at a machine without a gpu, I cant test the cpu mode well, ill merge the PR and ask people to test.

@trotskylenin
Copy link
Contributor

I will test it now.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants