feat: Add SimpleGraphMatching binding function
Compare changes
To replace one layer with another, from a python script, we need to have a binded replacement function. This is the reason for this merge request.
pybind_Matching.cpp
, add method to replace a node in a graph (added file);pybind_core.cpp
, add prototype of SinglePassGraphMatching function (modified file);matches = aidge_core.SinglePassGraphMatching(model).match("LeakyReLU")
for m in matches:
aidge_core.GraphView.replace(set([m.graph.root_node()]), set([aidge_core.ReLU()]))
(List the changes that need to be done to track the progress of the MR, you need to update the list when committing !)
Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent