f4622e59a087d04bc0628b52c33f0cc9f296223e,torch_geometric/nn/conv/film_conv.py,FiLMConv,message,#FiLMConv#Any#Any#Any#,83

Before Change


        if self.act is None:
            return self.lin(x_j)
        else:
            return self.act( gamma * self.lin(x_j) + beta )

    def __repr__(self):
        return "{}({}, dim={})".format(self.__class__.__name__, self.channels,
                                       self.dim)

After Change



    def message(self, x_j: Tensor, beta_i: Tensor, gamma_i: Tensor) -> Tensor:
        out = gamma_i * x_j + beta_i
        if self.act is not None:
            out = self.act(out)
        return out

    def __repr__(self):
        return "{}({}, {}, num_relations={})".format(self.__class__.__name__,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: f4622e59a087d04bc0628b52c33f0cc9f296223e
Time: 2020-12-24
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/film_conv.py
Class Name: FiLMConv
Method Name: message


Project Name: tensorlayer/tensorlayer
Commit Name: 56c83332ed9df439015ddae1524a38c80a9ac66b
Time: 2019-03-17
Author: 37874862+warshallrho@users.noreply.github.com
File Name: tensorlayer/layers/convolution/super_resolution.py
Class Name: SubpixelConv1d
Method Name: forward


Project Name: tensorlayer/tensorlayer
Commit Name: 56c83332ed9df439015ddae1524a38c80a9ac66b
Time: 2019-03-17
Author: 37874862+warshallrho@users.noreply.github.com
File Name: tensorlayer/layers/convolution/super_resolution.py
Class Name: SubpixelConv2d
Method Name: forward