Skip to content
Snippets Groups Projects
Commit 53f7d1be authored by Cyril Moineau's avatar Cyril Moineau
Browse files

no c++ default args and kwargs not defined by py::arg.

parent ff7f1a85
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!73Quality of life
Pipeline #38546 passed
......@@ -33,18 +33,14 @@ void init_GenericOperator(py::module& m) {
IOIndex_t nbData,
IOIndex_t nbParam,
IOIndex_t nbOut,
const std::string& name = "",
const std::string& name,
const py::kwargs kwargs){
// std::string name = "";
// if (kwargs.contains("name")) {
// name = kwargs["name"].cast<std::string>();
// }
std::shared_ptr<Node> genericNode = GenericOperator(
type,
nbData,
nbParam,
nbOut,
std::move(name)
name
);
if (kwargs){
std::shared_ptr<GenericOperator_Op> gop = std::static_pointer_cast<GenericOperator_Op>(genericNode->getOperator());
......@@ -55,6 +51,6 @@ void init_GenericOperator(py::module& m) {
}
}
return genericNode;
});
}, py::arg("type"), py::arg("nb_data"), py::arg("nb_param"), py::arg("nb_out"), py::arg("name") = "");
}
} // namespace Aidge
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment