From 11c86201ed16eb9254fd8b3a88fa1416a894b026 Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Thu, 13 Jun 2024 07:39:40 +0000 Subject: [PATCH] Bind Operator::type() method. --- python_binding/operator/pybind_Operator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/python_binding/operator/pybind_Operator.cpp b/python_binding/operator/pybind_Operator.cpp index e00f70413..2e087a3b9 100644 --- a/python_binding/operator/pybind_Operator.cpp +++ b/python_binding/operator/pybind_Operator.cpp @@ -41,6 +41,7 @@ void init_Operator(py::module& m){ .def("forward", &Operator::forward) // py::keep_alive forbide Python to garbage collect the implementation lambda as long as the Operator is not deleted ! .def("set_impl", &Operator::setImpl, py::arg("implementation"), py::keep_alive<1, 2>()) + .def("type", &Operator::type) .def("get_impl", &Operator::getImpl) .def("get_hook", &Operator::getHook) .def("add_hook", &Operator::addHook) -- GitLab