summaryrefslogtreecommitdiff
path: root/python/caffe/_caffe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'python/caffe/_caffe.cpp')
-rw-r--r--python/caffe/_caffe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/caffe/_caffe.cpp b/python/caffe/_caffe.cpp
index 7fc06c0..d7f43ff 100644
--- a/python/caffe/_caffe.cpp
+++ b/python/caffe/_caffe.cpp
@@ -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