2f7c8038a891f80318ba0aa0c3b800e91a1f5fe4,torch_geometric/nn/conv/message_passing.py,MessagePassing,__init__,#MessagePassing#Any#Any#Any#,44

Before Change


        self.__special_args__ = [(i, arg)
                                 for i, arg in enumerate(self.__message_args__)
                                 if arg in special_args]
        self.__message_args__ = [
            arg for arg in self.__message_args__ if arg not in special_args
        ]
        // skip self, out
        self.__update_args__ = getargspec(self.update)[0][2:]
        // skip self, out, index, dim, dim_size
        self.__aggregate_args__ = getargspec(self.aggregate)[0][5:]

After Change


                set(update_special_args) - set(self.__update_signature__.parameters)
            ))
        self.__aggregate_signature__ = inspect.signature(self.aggregate)
        if set(aggregate_special_args) - set(self.__aggregate_signature__.parameters):
            raise TypeError("Incomplete signature of aggregate: {} are missing required arguments".format(
                set(aggregate_special_args) - set(self.__aggregate_signature__.parameters)
            ))

    def propagate(self, edge_index, size=None, **kwargs):
        rThe initial call to start propagating messages.

        Args:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 2f7c8038a891f80318ba0aa0c3b800e91a1f5fe4
Time: 2019-12-25
Author: m.kochurov@partner.samsung.com
File Name: torch_geometric/nn/conv/message_passing.py
Class Name: MessagePassing
Method Name: __init__


Project Name: pytorch/text
Commit Name: 41bd713df7a4187dd0f42bbb9ffcac2ba126adbb
Time: 2020-06-16
Author: nayef.ahmed211@gmail.com
File Name: torchtext/experimental/vectors.py
Class Name: Vectors
Method Name: __init__


Project Name: pgmpy/pgmpy
Commit Name: 73dcacffa7dee910a9478cd7d783d91ef84dc987
Time: 2013-09-21
Author: snigam3112@gmail.com
File Name: BayesianModel.py
Class Name: BayesianModel
Method Name: add_nodes