summaryrefslogtreecommitdiff
path: root/python/caffe
diff options
context:
space:
mode:
Diffstat (limited to 'python/caffe')
-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 7fc06c08..d7f43fff 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