db77479fffc5e19fb3710c2092af8d76314f5fd3,onnx_coreml/_operators.py,,_convert_reduce,#Any#Any#Any#Any#,392
Before Change
coreml_axis = get_coreml_axis(axes)
if coreml_axis not in ["C", "H", "W", "HW", "CHW"]:
raise ValueError("{} op: unable to map axes attribute to CoreML axis parameter".format(node.op_type))
if node.op_type == "ReduceMean":
mode = "avg"
elif node.op_type == "ReduceL1":
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":
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_split
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