fd6059cfd9706b0fc583da508ac2db26a808c278,onnx_coreml/_transformers.py,NodesFuser,__call__,#NodesFuser#Any#,33

Before Change


                    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.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 7

Instances


Project Name: onnx/onnx-coreml
Commit Name: fd6059cfd9706b0fc583da508ac2db26a808c278
Time: 2019-09-05
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: NodesFuser
Method Name: __call__


Project Name: onnx/onnx-coreml
Commit Name: fd6059cfd9706b0fc583da508ac2db26a808c278
Time: 2019-09-05
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: ConstantsToInitializers
Method Name: __call__


Project Name: onnx/onnx-coreml
Commit Name: fd6059cfd9706b0fc583da508ac2db26a808c278
Time: 2019-09-05
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: ShapeOpRemover
Method Name: __call__


Project Name: onnx/onnx-coreml
Commit Name: fd6059cfd9706b0fc583da508ac2db26a808c278
Time: 2019-09-05
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: ImageScalerRemover
Method Name: __call__


Project Name: onnx/onnx-coreml
Commit Name: fd6059cfd9706b0fc583da508ac2db26a808c278
Time: 2019-09-05
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: CastOpRemover
Method Name: __call__


Project Name: onnx/onnx-coreml
Commit Name: fd6059cfd9706b0fc583da508ac2db26a808c278
Time: 2019-09-05
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: NodesFuser
Method Name: __call__


Project Name: onnx/onnx-coreml
Commit Name: fd6059cfd9706b0fc583da508ac2db26a808c278
Time: 2019-09-05
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: ReshapeInitTensorFuser
Method Name: __call__


Project Name: onnx/onnx-coreml
Commit Name: fd6059cfd9706b0fc583da508ac2db26a808c278
Time: 2019-09-05
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: ConstantFillToInitializers
Method Name: __call__


Project Name: onnx/onnx-coreml
Commit Name: fd6059cfd9706b0fc583da508ac2db26a808c278
Time: 2019-09-05
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: ConstantRemover
Method Name: __call__