bf085c0fd5049b88110c6e63f96ef885bd354318,src/graph_transpiler/webdnn/frontend/onnx/defs/math.py,,_convert_min,#Any#Any#,230

Before Change



@ONNXConverter.register_handler("Min")
def _convert_min(converter: ONNXConverter, onnx_op: INodeProto):
    raise NotImplementedError("[ONNXConverter] Operator \"Min\" is not supported yet.")


@ONNXConverter.register_handler("Sum")
def _convert_sum(converter: ONNXConverter, onnx_op: INodeProto):

After Change


def _convert_min(converter: ONNXConverter, onnx_op: INodeProto):
    xs = [converter.get_variable(v) for v in onnx_op.input]

    while len(xs) > 1:
        x0 = xs.pop(0)
        x1 = xs.pop(0)
        check_broadcast_constraints(x0, x1)

        y, = Select(None)(x0 > x1, x1, x0)
        xs.append(y)

    converter.set_variable(onnx_op.output[0], xs[0])


@ONNXConverter.register_handler("Sum")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: mil-tokyo/webdnn
Commit Name: bf085c0fd5049b88110c6e63f96ef885bd354318
Time: 2017-12-12
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/onnx/defs/math.py
Class Name:
Method Name: _convert_min


Project Name: mil-tokyo/webdnn
Commit Name: bf085c0fd5049b88110c6e63f96ef885bd354318
Time: 2017-12-12
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/onnx/defs/math.py
Class Name:
Method Name: _convert_max


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: d7dc5780cd975ed5927e68bd5dd5a4a69ce5efb5
Time: 2016-10-27
Author: jonwayne@google.com
File Name: bigquery/cloud-client/snippets.py
Class Name:
Method Name: list_projects


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 9867964b7d251206469d6de70b292b4e51b0d8a6
Time: 2016-11-22
Author: ryanmats@google.com
File Name: storage/cloud-client/encryption.py
Class Name:
Method Name: rotate_encryption_key