5cf0a414aa1f7c17fdc0eced712de551c335a25c,src/graph_transpiler/webdnn/frontend/tensorflow/ops/gen_math_ops.py,,sum_handler,#Any#Any#,697

Before Change



        v, = Sum(None, axis=axis)(v)

    if tf_op.get_attr("keep_dims") or x.ndim == 1:
        v = v.reshape(order=x.order, shape=[v.shape_dict[a] if a in v.order.axes else 1 for a in x.order.axes])

    converter.set_variable(tf_op.outputs[0], v)


@TensorFlowConverter.register_handler("Tan")

After Change



        v, = Sum(None, axis=axis)(v)

    if not tf_op.get_attr("keep_dims") and v.ndim > 1:
        v = v.squeeze(axis)

    converter.set_variable(tf_op.outputs[0], v)


@TensorFlowConverter.register_handler("Tan")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 26

Instances


Project Name: mil-tokyo/webdnn
Commit Name: 5cf0a414aa1f7c17fdc0eced712de551c335a25c
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/tensorflow/ops/gen_math_ops.py
Class Name:
Method Name: sum_handler


Project Name: mil-tokyo/webdnn
Commit Name: 5cf0a414aa1f7c17fdc0eced712de551c335a25c
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/tensorflow/ops/gen_math_ops.py
Class Name:
Method Name: prod_handler


Project Name: mil-tokyo/webdnn
Commit Name: 5cf0a414aa1f7c17fdc0eced712de551c335a25c
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/tensorflow/ops/gen_math_ops.py
Class Name:
Method Name: max_handler


Project Name: mil-tokyo/webdnn
Commit Name: 5cf0a414aa1f7c17fdc0eced712de551c335a25c
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/tensorflow/ops/gen_math_ops.py
Class Name:
Method Name: sum_handler


Project Name: mil-tokyo/webdnn
Commit Name: 5cf0a414aa1f7c17fdc0eced712de551c335a25c
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/tensorflow/ops/gen_math_ops.py
Class Name:
Method Name: min_handler