db77479fffc5e19fb3710c2092af8d76314f5fd3,onnx_coreml/_operators.py,,_convert_reduce,#Any#Any#Any#Any#,392

Before Change


    elif node.op_type == "ReduceSumSquare":
        mode = "sumsquare"
    else:
        raise ValueError("Unsupported ONNX op {}".format(node.op_type))

    builder.add_reduce(name=node.name,
                       input_name=node.inputs[0], output_name=node.outputs[0],
                       axis=coreml_axis,

After Change


    coreml_axis = get_coreml_axis(axes)

    if coreml_axis not in ["C", "H", "W", "HW", "CHW"]:
        return err.unsupported_op_configuration(builder, node, graph, "Unable to translate axes attribute to CoreML axis parameter")

    if node.op_type == "ReduceMean":
        mode = "avg"
    elif node.op_type == "ReduceL1":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: onnx/onnx-coreml
Commit Name: db77479fffc5e19fb3710c2092af8d76314f5fd3
Time: 2018-04-20
Author: aseem.elec@gmail.com
File Name: onnx_coreml/_operators.py
Class Name:
Method Name: _convert_reduce


Project Name: onnx/onnx-coreml
Commit Name: db77479fffc5e19fb3710c2092af8d76314f5fd3
Time: 2018-04-20
Author: aseem.elec@gmail.com
File Name: onnx_coreml/_operators.py
Class Name:
Method Name: _convert_conv


Project Name: onnx/onnx-coreml
Commit Name: db77479fffc5e19fb3710c2092af8d76314f5fd3
Time: 2018-04-20
Author: aseem.elec@gmail.com
File Name: onnx_coreml/_operators.py
Class Name:
Method Name: _convert_concat