Recipies#

Fuse Mul Add#

aidge_core.fuse_mul_add(graph_view: aidge_core.aidge_core.GraphView) None#

Recipe to Fuse MatMul and Add operators into an aidge_core.FC operator.

Parameters:

graph_view (aidge_core.GraphView) – Graph view on which we want to apply the recipe

void Aidge::fuseMulAdd(std::shared_ptr<GraphView> graphView)

Merge MatMul and :cpp:function:Aidge::Add Node into a :cpp:function:Aidge::FC Node.

Parameters:

graphView – Graph view to use graph matching on, in order to apply transformations.

Remove flatten#

aidge_core.remove_flatten(graph_view: aidge_core.aidge_core.GraphView) None#

Recipe to remove a flatten operator.

Parameters:

graph_view (aidge_core.GraphView) – Graph view on which we want to apply the recipe

void Aidge::removeFlatten(std::shared_ptr<GraphView> graphView)

Remove Flatten before :cpp:function:Aidge::FC Node.

Parameters:

graphView – Graph view to use graph matching on, in order to apply transformations.