Skip to content

Commit c6685de

Browse files
committed
Add SVM._ptr_as_int()
1 parent 04b9bb2 commit c6685de

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wrap_cl_part_2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ void pyopencl_expose_part_2(py::module &m)
299299
typedef svm_arg_wrapper cls;
300300
py::class_<cls>(m, "SVM", py::dynamic_attr())
301301
.def(py::init<py::object>())
302+
.def("_ptr_as_int", [](cls &self) { return (intptr_t) self.ptr(); })
302303
.def("_size", &cls::size)
303304
;
304305
}

0 commit comments

Comments
 (0)