From 753f7e48e6734e216a1521cc0cf10c79440c939f Mon Sep 17 00:00:00 2001 From: Olivier BICHLER <olivier.bichler@cea.fr> Date: Wed, 4 Sep 2024 14:39:54 +0200 Subject: [PATCH] Hotfix to add default arguments to ReduceMean --- python_binding/operator/pybind_ReduceMean.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_binding/operator/pybind_ReduceMean.cpp b/python_binding/operator/pybind_ReduceMean.cpp index 31f88d149..0fceed204 100644 --- a/python_binding/operator/pybind_ReduceMean.cpp +++ b/python_binding/operator/pybind_ReduceMean.cpp @@ -40,7 +40,7 @@ void declare_ReduceMeanOp(py::module &m) { if False, the operatpr reduces all the dimensions. :type noop_with_empty_axes: bool )mydelimiter") - .def(py::init<std::vector<std::int32_t>, bool, bool>(), py::arg("axes"), py::arg("keep_dims"), py::arg("noop_with_empty_axes")) + .def(py::init<std::vector<std::int32_t>, bool, bool>(), py::arg("axes") = std::vector<std::int32_t>(), py::arg("keep_dims") = true, py::arg("noop_with_empty_axes") = false) .def_static("get_inputs_name", &ReduceMean_Op::getInputsName) .def_static("get_outputs_name", &ReduceMean_Op::getOutputsName) ; -- GitLab