take blob args as ndarrays and assign on the python side
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 16 May 2014 01:14:45 +0000 (18:14 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 16 May 2014 23:10:25 +0000 (16:10 -0700)
commit5d584c27f062e9557aa920af6758b995f4094ed9
tree4f47a0aaf97285329d6975d52da2a2e6ca20a035
parent025c64e71d303cd16dc2725705b15a2e9bd0c1fd
take blob args as ndarrays and assign on the python side

Take blob args and give blob returns as single ndarrays instead of lists
of arrays.

Assign the net blobs and diffs as needed on the python side, which
reduces copies and simplifies the C++ side of the wrapper.

Thanks @longjon for the suggestion.
python/caffe/_caffe.cpp
python/caffe/pycaffe.py