Skip to content

Commit

Permalink
add clear_param_diffs to the python net interface
Browse files Browse the repository at this point in the history
  • Loading branch information
nitnelave committed Jun 22, 2016
1 parent f28f5ae commit 118c97f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/caffe/_caffe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ BOOST_PYTHON_MODULE(_caffe) {
.def("_forward", &Net<Dtype>::ForwardFromTo)
.def("_backward", &Net<Dtype>::BackwardFromTo)
.def("reshape", &Net<Dtype>::Reshape)
.def("clear_param_diffs", &Net<Dtype>::ClearParamDiffs)
// The cast is to select a particular overload.
.def("copy_from", static_cast<void (Net<Dtype>::*)(const string)>(
&Net<Dtype>::CopyTrainedLayersFrom))
Expand Down

0 comments on commit 118c97f

Please sign in to comment.