Skip to content

Commit

Permalink
Explicit std::string to bp::object conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
willyd committed Apr 14, 2017
1 parent 0c9cc62 commit aa29eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/caffe/_caffe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ bp::object NCCL_New_Uid() {
return bp::object(bp::handle<>(py_uid));
#else
// automatic conversion is correct for python 2.
return uid;
return bp::object(uid);
#endif
}
#endif
Expand Down

0 comments on commit aa29eba

Please sign in to comment.