b157e5f27a508e8dff63684ab40479cf8e3277c6,modules/functions.py,InPlaceABNSync,backward,#,197

Before Change


        else:
            edz = dz.new_zeros(dz.size(1))
            eydz = dz.new_zeros(dz.size(1))
            edz_local = edz.clone()
            eydz_local = eydz.clone()

        dx = _backend.backward(z, dz, var, weight, bias, edz, eydz, ctx.affine, ctx.eps)
        dweight = eydz_local * weight.sign() if ctx.affine else None

After Change


                eydz /= ctx.world_size
        else:
            edz_local = edz = dz.new_zeros(dz.size(1))
            eydz_local = eydz = dz.new_zeros(dz.size(1))

        dx = _backend.backward(z, dz, var, weight, bias, edz, eydz, ctx.affine, ctx.eps)
        dweight = eydz_local * weight.sign() if ctx.affine else None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mapillary/inplace_abn
Commit Name: b157e5f27a508e8dff63684ab40479cf8e3277c6
Time: 2018-11-29
Author: samuel@mapillary.com
File Name: modules/functions.py
Class Name: InPlaceABNSync
Method Name: backward


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: 9503fd51007f3c31daa5a8c110c4b090d3644fdc
Time: 2018-12-13
Author: yanzhaoyi@outlook.com
File Name: models/accelerated_shift_net/accelerated_InnerShiftTripleFunction.py
Class Name: AcceleratedInnerShiftTripleFunction
Method Name: forward


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: d2c500803a9d7141a3933d0f4804d9635cd7bfc6
Time: 2018-12-13
Author: yanzhaoyi@outlook.com
File Name: models/soft_shift_net/innerSoftShiftTripleModule.py
Class Name: InnerSoftShiftTripleModule
Method Name: forward