
Contents
More
Adds a local function.
Folds all constants. Constants are marked during the creation of the graph.There is no need to propagate this information.
Appends all nodes and initializers from another builder.Handles the renaming of results.The content stored in ‘builder’ is modified inplace to avoid copying.
builder – other builder
input_names – input names
output_names – output names
prefix – prefix all name from this builder
output names
Returns an instance ofNodePattern.
Simple function to remove unused nodes.It does not look into subgraphs and assumes there is none.Everything is done in one pass.
Udates attributes for nodes matching the
pat – returned by methodGraphBuilder.np()
recursive – walk through subgraph
kwargs – attributes to modify
number of modified nodes