From 2e206867bc985ef15c46ab51a7ff062176764dca Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Fri, 5 Apr 2024 13:49:19 +0000 Subject: [PATCH] Add GraphView.clone and Node.clone to binding. --- python_binding/graph/pybind_GraphView.cpp | 2 +- python_binding/graph/pybind_Node.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python_binding/graph/pybind_GraphView.cpp b/python_binding/graph/pybind_GraphView.cpp index 04248796b..100037445 100644 --- a/python_binding/graph/pybind_GraphView.cpp +++ b/python_binding/graph/pybind_GraphView.cpp @@ -114,7 +114,7 @@ void init_GraphView(py::module& m) { :return: Whether any replacement has been made. :rtype: bool )mydelimiter") - + .def("clone", &GraphView::clone) .def("get_nodes", &GraphView::getNodes) .def("get_node", &GraphView::getNode, py::arg("node_name")) .def("forward_dims", &GraphView::forwardDims, py::arg("dims")=std::vector<std::vector<DimSize_t>>(), py::arg("allow_data_dependency") = false) diff --git a/python_binding/graph/pybind_Node.cpp b/python_binding/graph/pybind_Node.cpp index 116b9dc40..b22ebdd0f 100644 --- a/python_binding/graph/pybind_Node.cpp +++ b/python_binding/graph/pybind_Node.cpp @@ -28,7 +28,7 @@ void init_Node(py::module& m) { R"mydelimiter( Name of the Node. )mydelimiter") - + .def("clone", (NodePtr (Node::*)() const) &Node::clone) .def("type", &Node::type, R"mydelimiter( Type of the node. -- GitLab