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

Change Python interface for mode, phase, and device #1728

Merged
merged 1 commit into from
Jan 16, 2015

Conversation

shelhamer
Copy link
Member

Attach mode, phase, and device setters to caffe module itself so that these can be set before making nets. This is needed to properly initialize layers with the right device and phase configuration.

Fix #1700.

You must call caffe.set_{mode,phase,device} before making a caffe.Net! This breaks existing pycaffe code that makes Net.set_{mode,phase,device} calls.

@longjon

Attach mode, phase, and device setters to caffe module itself
so that these can be set before making nets. This is needed to properly
initialize layers with the right device and phase configuration.

Update examples to new usage.
shelhamer added a commit that referenced this pull request Jan 16, 2015
Change Python interface for mode, phase, and device
@shelhamer shelhamer merged commit 6b0ad49 into BVLC:master Jan 16, 2015
@shelhamer shelhamer deleted the pycaffe-mode-phase-device branch January 16, 2015 06:04
shelhamer added a commit to shelhamer/caffe that referenced this pull request Jan 23, 2015
jeffdonahue added a commit that referenced this pull request Jan 23, 2015
slayton58 pushed a commit to slayton58/caffe that referenced this pull request Mar 4, 2015
shelhamer added a commit to shelhamer/caffe that referenced this pull request Mar 7, 2015
shelhamer added a commit to shelhamer/caffe that referenced this pull request Mar 7, 2015
shelhamer added a commit that referenced this pull request Mar 8, 2015
@shuangao shuangao mentioned this pull request Mar 25, 2015
cbfinn pushed a commit to cbfinn/caffe that referenced this pull request Aug 12, 2015
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.

Python can't set the device / phase for net initialization
2 participants