added_merged.append(merged[0])
else:
transformed_nodes.append(node)
return Graph(transformed_nodes, graph.inputs, graph.outputs, graph.shape_dict)
def is_eligible(self, graph, nodes): // type: (Graph, Sequence[Node]) -> bool
"""Returns true if this subset of nodes is eligible for fusion."""
raise NotImplementedError("Must be implemented by subclass.")
After Change
added_merged.append(merged[0])
else:
transformed_nodes.append(node)
return graph.create_graph(nodes=transformed_nodes)
def is_eligible(self, graph, nodes): // type: (Graph, Sequence[Node]) -> bool
"""Returns true if this subset of nodes is eligible for fusion."""
raise NotImplementedError("Must be implemented by subclass.")