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

Before Change



        self.__message_args__ = getargspec(self.message)[0][1:]
        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
        ]

After Change


        self.__message_signature__ = inspect.signature(self.message)
        // skip self, out
        self.__update_signature__ = inspect.signature(self.update)
        if set(update_special_args) - set(self.__update_signature__.parameters):
            raise TypeError("Incomplete signature of update: {} are missing required arguments".format(
                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.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: shaypal5/pdpipe
Commit Name: 71a900bce8f2544ee8d560241349d43f5d29164f
Time: 2017-03-17
Author: shaypal5@gmail.com
File Name: pdpipe/basic_stages.py
Class Name: ColByFunc
Method Name: _op


Project Name: brian-team/brian2
Commit Name: 48cc7754788d96340dbb913e6f9dd121dcf13710
Time: 2013-07-23
Author: marcel.stimberg@ens.fr
File Name: brian2/monitors/statemonitor.py
Class Name: StateMonitor
Method Name: __init__