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

Before Change


        return out

    def message(self, x_j, beta, gamma) -> Tensor:
        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: 4

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: facebookresearch/Horizon
Commit Name: f2e39855d7dda56b4b31185d4d0dd131f909369b
Time: 2020-05-02
Author: wangkaiwen998@gmail.com
File Name: reagent/gym/agents/agent.py
Class Name: Agent
Method Name: act


Project Name: stellargraph/stellargraph
Commit Name: 7f897088f738d00d4f9c634142666ea4703503a2
Time: 2018-10-18
Author: andrew.docherty@data61.csiro.au
File Name: stellargraph/layer/graphsage.py
Class Name: MeanAggregator
Method Name: call


Project Name: reinforceio/tensorforce
Commit Name: 0655e4a2bd89ccc20f4f1157f65b3e5a61f140e1
Time: 2019-01-20
Author: alexkuhnle@t-online.de
File Name: tensorforce/execution/parallel_runner.py
Class Name: ParallelRunner
Method Name: run