dbc4ebdb4c524f8c7c87502f544c6f8ce1fff59c,torch_geometric/nn/models/tgn.py,TGN,__init__,#TGN#,34

Before Change


        last_update = torch.empty(num_nodes, dtype=torch.long)
        self.register_buffer("last_update", last_update)
        assoc = torch.empty(num_nodes, dtype=torch.long)
        self.register_buffer("__assoc__", assoc)

        self.msg_s_store = {}
        self.msg_d_store = {}

After Change


        self.register_buffer("memory", torch.empty(num_nodes, memory_dim))
        last_update = torch.empty(self.num_nodes, dtype=torch.long)
        self.register_buffer("last_update", last_update)
        self.register_buffer("assoc", torch.empty(num_nodes, dtype=torch.long))

        self.msg_s_store = {}
        self.msg_d_store = {}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: dbc4ebdb4c524f8c7c87502f544c6f8ce1fff59c
Time: 2020-11-27
Author: erossi@twitter.com
File Name: torch_geometric/nn/models/tgn.py
Class Name: TGN
Method Name: __init__


Project Name: rusty1s/pytorch_geometric
Commit Name: 8560495c8e61112eceddf7950f10cc761801c5cc
Time: 2020-11-03
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/models/tgn.py
Class Name: TGN
Method Name: __init__


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 373ae159f7ae1cabaf87228d1ae0fb6acd1c6363
Time: 2018-04-29
Author: max.lapan@gmail.com
File Name: ch14/lib/model.py
Class Name: D4PGCritic
Method Name: __init__