Skip to content

Commit

Permalink
slots for Image, SVM
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Oct 5, 2024
1 parent f97160e commit c237894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wrap_cl_part_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void pyopencl_expose_part_2(py::module_ &m)

{
typedef image cls;
py::class_<cls, memory_object>(m, "Image", py::dynamic_attr())
py::class_<cls, memory_object>(m, "Image", py::dynamic_attr(), py::type_slots(slots))
.def(
"__init__",
[](
Expand Down Expand Up @@ -348,7 +348,7 @@ void pyopencl_expose_part_2(py::module_ &m)

{
typedef svm_arg_wrapper cls;
py::class_<cls, svm_pointer>(m, "SVM", py::dynamic_attr())
py::class_<cls, svm_pointer>(m, "SVM", py::dynamic_attr(), py::type_slots(slots))
.def(py::init<py::object>())
;
}
Expand Down

0 comments on commit c237894

Please sign in to comment.