50aa0b2c6220b018d341e02c283099727463dc05,onnxmltools/convert/coreml/operator_converters/neural_network/Pool.py,,convert_pooling,#Any#Any#Any#,152

Before Change


            apply_div(scope, [Y_prime_name, Z_prime_prime_name], Y_name, container, broadcast=0)
    else:
        // Create the major Pool operator
        if params.type == Params.L2:
            container.add_node(op_type, inputs, outputs, op_version=2, **attrs)
        else:
            container.add_node(op_type, inputs, outputs, **attrs)


register_converter("pooling", convert_pooling)

After Change


        op_version = 1
    elif params.type == Params.AVERAGE:
        op_type = "AveragePool"
        if operator.targeted_onnx_version < StrictVersion("1.2"):
            op_version = 1
        else:
            op_version = 7
    elif params.type == Params.L2:
        op_type = "LpPool"
        attrs["p"] = 2
        op_version = 2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: onnx/onnxmltools
Commit Name: 50aa0b2c6220b018d341e02c283099727463dc05
Time: 2018-05-29
Author: wschin@outlook.com
File Name: onnxmltools/convert/coreml/operator_converters/neural_network/Pool.py
Class Name:
Method Name: convert_pooling


Project Name: onnx/onnxmltools
Commit Name: 5f41a2bd185b946de113714910e1f5f2730d5f4b
Time: 2018-05-19
Author: wschin@outlook.com
File Name: onnxmltools/convert/sklearn/shape_calculators/SVM.py
Class Name:
Method Name: calculate_sklearn_svm_output_shapes


Project Name: onnx/onnxmltools
Commit Name: 5f41a2bd185b946de113714910e1f5f2730d5f4b
Time: 2018-05-19
Author: wschin@outlook.com
File Name: onnxmltools/convert/sklearn/shape_calculators/LinearClassifier.py
Class Name:
Method Name: calculate_sklearn_linear_classifier_output_shapes