f3e7b16ce89d4e737e7608996df2bd241d594a58,se3cnn/blocks/gated_block.py,GatedBlock,forward,#GatedBlock#,96

Before Change



        // dropout
        if self.dropout is not None:
            z = self.dropout(z)

        return z

After Change


        y = self.conv(*args, **kwargs)  // [batch, channel, ...]

        if self.scalar_act is None and self.gate_act is None:
            return y

        batch = y.size(0)
        size = y.size()[2:]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mariogeiger/se3cnn
Commit Name: f3e7b16ce89d4e737e7608996df2bd241d594a58
Time: 2019-07-09
Author: geiger.mario@gmail.com
File Name: se3cnn/blocks/gated_block.py
Class Name: GatedBlock
Method Name: forward


Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: 6dd1321dd5db38e7c2641554c10de83e1b11940e
Time: 2019-11-30
Author: jadore801120@gmail.com
File Name: transformer/Models.py
Class Name: PositionalEncoding
Method Name: forward


Project Name: explosion/thinc
Commit Name: 2eaa129d4066c85451e7efa2d469bd74d2710cec
Time: 2019-12-26
Author: honnibal+gh@gmail.com
File Name: thinc/neural/_classes/affine.py
Class Name: Affine
Method Name: begin_update