299392c6e0618088e4f3deeb50dd23094c5e8261,se3_cnn/non_linearities/scalar_activation.py,BiasRelu,__init__,#BiasRelu#Any#Any#,6

Before Change


            self.batch_norms = []
            for d, on in self.enable:
                if on:
                    bn = torch.nn.BatchNorm3d(d, affine=False)
                    setattr(self, "bn{}".format(len(self.batch_norms)), bn)
                    self.batch_norms.append(bn)

        nbias = sum([d for d, on in self.enable if on])
        self.bias = Parameter(torch.FloatTensor(nbias)) if nbias > 0 else None

After Change


        nbias = sum([d for d, on in self.enable if on])
        if nbias > 0:
            self.bias = Parameter(torch.FloatTensor(nbias))
            self.bias.data[:] = 0
        else:
            self.bias = None

        self.normalize = normalize
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: mariogeiger/se3cnn
Commit Name: 299392c6e0618088e4f3deeb50dd23094c5e8261
Time: 2017-09-22
Author: geiger.mario@gmail.com
File Name: se3_cnn/non_linearities/scalar_activation.py
Class Name: BiasRelu
Method Name: __init__


Project Name: hanxiao/bert-as-service
Commit Name: b44d6115097e2bebc4a1ecef869e04e2c60af7bb
Time: 2018-12-15
Author: hanhxiao@tencent.com
File Name: benchmark.py
Class Name:
Method Name:


Project Name: pymc-devs/pymc3
Commit Name: 2c44b5e4c409710375e6b5b57732a9ca31461763
Time: 2008-11-11
Author: david.huard@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/database/mysql.py
Class Name:
Method Name: load


Project Name: jonathf/chaospy
Commit Name: fde4b1f40f02082b56e8af3c696b3f1b0cef7fa4
Time: 2017-09-30
Author: jonathf@gmail.com
File Name: src/chaospy/saltelli.py
Class Name: Saltelli
Method Name: __getitem__