ee8dff08fab93eb7c30b3c3581a105a796fdec2e,src/graph_builder/backend/fallback/kernels/axiswise_bias.py,,axiswise_bias,#Any#,28

Before Change



    assert x.ndim == 2
    assert y.ndim == 2
    assert x.axis_order.axes_dict[op.parameters["axis"]] == 1

    kernel = Kernel(
        {"axiswise_bias": source},
        "axiswise_bias",

After Change


    axis_pos = x.axis_order.axes_dict[op.parameters["axis"]]  // NCHWでaxis=Cなら、1
    axis_size = x.shape[axis_pos]
    assert axis_size == b.size
    axis_stride = int(np.prod(x.shape[axis_pos + 1:]))  // NCHWでaxis=Cなら、size(H)*size(W), np.prod([])==1.0

    kernel = Kernel(
        {"axiswise_bias": source},
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: mil-tokyo/webdnn
Commit Name: ee8dff08fab93eb7c30b3c3581a105a796fdec2e
Time: 2017-04-20
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: src/graph_builder/backend/fallback/kernels/axiswise_bias.py
Class Name:
Method Name: axiswise_bias


Project Name: ilastik/ilastik
Commit Name: d835c2656618fe0d227c7eb15eecb4847e8b6475
Time: 2012-07-02
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/obsolete/classifierOperators.py
Class Name: OpPredictRandomForest
Method Name: execute


Project Name: PyMVPA/PyMVPA
Commit Name: 3c1eafeea79d946575ea5b6b5cb02f945897d2fd
Time: 2009-12-10
Author: michael.hanke@gmail.com
File Name: mvpa/tests/test_mapper.py
Class Name:
Method Name: test_flatten


Project Name: NifTK/NiftyNet
Commit Name: 135a56e0935fbb04811f8ce7b9f514f498212f71
Time: 2018-07-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/crf.py
Class Name:
Method Name: ftheta