84ce5ecb59b72b7bd001cf960df04d76bb22e36c,onnx_coreml/_transformers.py,BNBroadcastedAddFuser,is_eligible,#BNBroadcastedAddFuser#Any#Any#,192

Before Change


            return False
        if child.op_type != "Add":
            return False
        if "broadcast" not in child.attrs:
            return False
        if child.attrs["broadcast"] != 1:
            return False
        if "axis" not in child.attrs:
            return False

After Change


        if child.inputs[1] not in child.input_tensors:
            return False
        t = child.input_tensors[child.inputs[1]]
        if len(np.squeeze(t).shape) != 1:
            return False
        if parent.inputs[1] not in parent.input_tensors:
            return False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: onnx/onnx-coreml
Commit Name: 84ce5ecb59b72b7bd001cf960df04d76bb22e36c
Time: 2018-08-22
Author: awadhwa@apple.com
File Name: onnx_coreml/_transformers.py
Class Name: BNBroadcastedAddFuser
Method Name: is_eligible


Project Name: interactiveaudiolab/nussl
Commit Name: 2ffbfa3a6bd3b8de8e21a762489346054dcd9ccc
Time: 2020-03-12
Author: prem@u.northwestern.edu
File Name: nussl/separation/deep/deep_mask_estimation.py
Class Name: DeepMaskEstimation
Method Name: extract_features


Project Name: onnx/onnx-coreml
Commit Name: 84ce5ecb59b72b7bd001cf960df04d76bb22e36c
Time: 2018-08-22
Author: awadhwa@apple.com
File Name: onnx_coreml/_transformers.py
Class Name: BNBroadcastedMulFuser
Method Name: is_eligible