Skip to content

Commit eeebdab

Browse files
authored
Merge pull request #5530 from willyd/nccl-py3
Explicit std::string to bp::object conversion
2 parents 69cf20a + aa29eba commit eeebdab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/caffe/_caffe.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ bp::object NCCL_New_Uid() {
371371
return bp::object(bp::handle<>(py_uid));
372372
#else
373373
// automatic conversion is correct for python 2.
374-
return uid;
374+
return bp::object(uid);
375375
#endif
376376
}
377377
#endif

0 commit comments

Comments
 (0)