91a9437c8c6ed68d14884cc040c988301a7430ea,src/graph_transpiler/webdnn/frontend/chainer/functions/normalization.py,,_convert_normalize_l2,#,11

Before Change


@ChainerConverter.register_handler("NormalizeL2")
def _convert_normalize_l2(converter: ChainerConverter, c_op: "chainer.functions.NormalizeL2"):
    // TODO
    raise NotImplementedError("[ChainerConverter] NormalizeL2 is not supported")


@ChainerConverter.register_handler("LocalResponseNormalization")
def _convert_local_response_normalization(converter: ChainerConverter,

After Change



@ChainerConverter.register_handler("NormalizeL2")
def _convert_normalize_l2(converter: ChainerConverter, c_op: "chainer.functions.NormalizeL2"):
    x = converter.get_variable(c_op.inputs[0])

    if len(c_op.axis) > 1:  // c_op.axis: tuple
        raise ValueError("The number of axis for NormalizeL2 must be 1.")
    y, = Normalize(None, axis=x.order.axes[c_op.axis[0]], eps=c_op.eps)(x)

    converter.set_variable(c_op.outputs[0](), y)


@ChainerConverter.register_handler("LocalResponseNormalization")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: mil-tokyo/webdnn
Commit Name: 91a9437c8c6ed68d14884cc040c988301a7430ea
Time: 2019-06-25
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/normalization.py
Class Name:
Method Name: _convert_normalize_l2


Project Name: mortendahl/tf-encrypted
Commit Name: 0be81ada984e231be55e60466da93ba551bcf3a1
Time: 2020-07-28
Author: zhicong303@gmail.com
File Name: tf_encrypted/protocol/aby3/aby3.py
Class Name: ABY3
Method Name: setup_pairwise_randomness


Project Name: mil-tokyo/webdnn
Commit Name: 91a9437c8c6ed68d14884cc040c988301a7430ea
Time: 2019-06-25
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/normalization.py
Class Name:
Method Name: _convert_normalize_l2


Project Name: scikit-learn/scikit-learn
Commit Name: 670b85c9e9cec05210e8596bc1fb9ca66787162f
Time: 2020-04-19
Author: 50599110+lrjball@users.noreply.github.com
File Name: sklearn/compose/_column_transformer.py
Class Name: ColumnTransformer
Method Name: get_feature_names


Project Name: havakv/pycox
Commit Name: fdf356a91622033dc8e88ccf64c2f421e9d3a8a8
Time: 2018-02-27
Author: kvamme@samba8.ad.nr.no
File Name: pycox/cox.py
Class Name: CoxTime
Method Name: predict_cumulative_hazard_at_times