From 8647eff5367293e8375f3e3204ea5acff562bfbd Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Mon, 7 Aug 2023 13:28:47 +0000 Subject: [PATCH] [PyBind] FC & MatMul now inherit from PyAbstractParametrizable --- python_binding/operator/pybind_FC.cpp | 2 +- python_binding/operator/pybind_Matmul.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python_binding/operator/pybind_FC.cpp b/python_binding/operator/pybind_FC.cpp index 550f04021..82eaa0062 100644 --- a/python_binding/operator/pybind_FC.cpp +++ b/python_binding/operator/pybind_FC.cpp @@ -21,7 +21,7 @@ namespace py = pybind11; namespace Aidge { void declare_FC(py::module &m) { - py::class_<FC_Op, std::shared_ptr<FC_Op>, Operator>(m, "FC_Op", py::multiple_inheritance()); + py::class_<FC_Op, std::shared_ptr<FC_Op>, Operator, PyAbstractParametrizable>(m, "FC_Op", py::multiple_inheritance()); m.def("FC", &FC, py::arg("out_channels"), py::arg("nobias") = false, py::arg("name") = nullptr); } diff --git a/python_binding/operator/pybind_Matmul.cpp b/python_binding/operator/pybind_Matmul.cpp index a26caeba3..c81845ca5 100644 --- a/python_binding/operator/pybind_Matmul.cpp +++ b/python_binding/operator/pybind_Matmul.cpp @@ -21,7 +21,7 @@ namespace py = pybind11; namespace Aidge { void declare_Matmul(py::module &m) { - py::class_<Matmul_Op, std::shared_ptr<Matmul_Op>, Operator>(m, "Matmul_Op", py::multiple_inheritance()); + py::class_<Matmul_Op, std::shared_ptr<Matmul_Op>, Operator, PyAbstractParametrizable>(m, "Matmul_Op", py::multiple_inheritance()); m.def("Matmul", &Matmul, py::arg("out_channels"), py::arg("name") = nullptr); } -- GitLab