Skip to content

Commit

Permalink
Merge pull request #5530 from willyd/nccl-py3
Browse files Browse the repository at this point in the history
Explicit std::string to bp::object conversion
  • Loading branch information
cypof authored Apr 15, 2017
2 parents 69cf20a + aa29eba commit eeebdab
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 eeebdab

Please sign in to comment.