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

Fixed Python binding

parent bfa7580b
No related branches found
No related tags found
No related merge requests found
......@@ -405,11 +405,6 @@ public:
*/
static bool replace(const std::set<NodePtr>& oldNodes, const std::set<NodePtr>& newNodes);
/**
* @brief Replace a set of Nodes in every available GraphView with a new set of Nodes with ordered inputs/outputs in a GraphView if possible.
*/
static bool replace(const std::shared_ptr<GraphView>& oldNodes, const std::shared_ptr<GraphView>& newNodes);
/**
* @brief Clone the GraphView with shared Operators. It is a new GraphView, with cloned Nodes, but the new Nodes refer to the same Operators as the original ones.
* @return std::shared_ptr<GraphView>
......
......@@ -56,7 +56,7 @@ void init_GraphView(py::module& m) {
:type include_learnable_parameters: bool, optional
)mydelimiter")
.def("add", (void (GraphView::*)(std::shared_ptr<GraphView>)) & GraphView::add,
.def("add", (bool (GraphView::*)(std::shared_ptr<GraphView>)) & GraphView::add,
py::arg("other_graph"),
R"mydelimiter(
Include a GraphView to the current GraphView object.
......
......@@ -127,9 +127,7 @@ void init_MetaOperatorDefs(py::module &m) {
m.def("meta_operator", &MetaOperator,
py::arg("type"),
py::arg("graph"),
py::arg("name") = "",
py::arg("input_nodes") = std::vector<NodePtr>(),
py::arg("output_nodes") = std::vector<NodePtr>()
py::arg("name") = ""
);
}
......
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