set mode, phase, device in pycaffe; fix #1700
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 15 Jan 2015 01:56:23 +0000 (17:56 -0800)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 15 Jan 2015 06:42:03 +0000 (22:42 -0800)
commit4041e4d0117e46bb213a6017e9e34806a8ccb286
tree2432b0ce52a6459de1cf48f76ffdc5ee5048a4fc
parent119890974e10ec203b43008146dc49fd2e891533
set mode, phase, device in pycaffe; fix #1700

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.
examples/classification.ipynb
examples/filter_visualization.ipynb
examples/net_surgery.ipynb
python/caffe/__init__.py
python/caffe/_caffe.cpp
python/caffe/_caffe.hpp
python/caffe/classifier.py
python/caffe/detector.py
python/caffe/pycaffe.py