Skip to content
Snippets Groups Projects
Commit b9e0c0fc authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Merge branch 'PythonClone' into 'dev'

Add GraphView.clone and Node.clone to binding.

See merge request eclipse/aidge/aidge_core!103
parents 43b467f6 9e1dc1f9
No related branches found
No related tags found
No related merge requests found
......@@ -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>>())
......
......@@ -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.
......
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