6b8b2026f4501c3d6b62031c79ee38dd64955e1f,torch_geometric/nn/conv/message_passing.py,MessagePassing,propagate,#MessagePassing#Any#Any#,43
Before Change
if tmp is not None:
if size[i] is None:
size[i] = tmp.size(0)
tmp = torch.index_select(tmp, 0, edge_index[i])
message_args.append(tmp)
elif arg[-2:] == "_j":
tmp = kwargs[arg[:-2]]
if tmp is not None:
After Change
assert len(tmp) == 2
idx = ij[arg[-2:]]
if size[idx] is None:
size[idx] = tmp[idx].size(0)
tmp = torch.index_select(tmp[idx], 0, edge_index[idx])
message_args.append(tmp)
else:
message_args.append(kwargs[arg])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: rusty1s/pytorch_geometric
Commit Name: 6b8b2026f4501c3d6b62031c79ee38dd64955e1f
Time: 2019-04-02
Author: kuynzereb@gmail.com
File Name: torch_geometric/nn/conv/message_passing.py
Class Name: MessagePassing
Method Name: propagate
Project Name: OpenNMT/OpenNMT-py
Commit Name: bc0ac45c0bf4f66d56df6c54f5230c6c4281daf1
Time: 2017-05-31
Author: srush@sum1gpu02.rc.fas.harvard.edu
File Name: onmt/Translator.py
Class Name: Translator
Method Name: translateBatch
Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: d0b1ec9bc6ff13ca05f280bf40961bbbd4f8c577
Time: 2017-11-28
Author: zhaohang0124@gmail.com
File Name: dataset.py
Class Name: Dataset
Method Name: __getitem__