61d8eda8a6c2f4d54896cd242d3534509c6c1ac8,torch_geometric/utils/degree.py,,degree,#Any#Any#Any#,6
Before Change
num_nodes = maybe_num_nodes(index, num_nodes)
out = torch.zeros((num_nodes), dtype=dtype, device=index.device)
return out.scatter_add_(0, index, out.new_ones((index.size(0))))
After Change
:rtype: :class:`Tensor`
num_nodes_int = maybe_num_nodes(index, num_nodes)
out = torch.zeros((num_nodes_int), dtype=dtype, device=index.device)
out_ones = torch.ones((index.size(0)), dtype=out.dtype, device=out.device)
return out.scatter_add_(0, index, out_ones)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: 61d8eda8a6c2f4d54896cd242d3534509c6c1ac8
Time: 2020-05-31
Author: lindsey.gray@gmail.com
File Name: torch_geometric/utils/degree.py
Class Name:
Method Name: degree
Project Name: rusty1s/pytorch_geometric
Commit Name: 61d8eda8a6c2f4d54896cd242d3534509c6c1ac8
Time: 2020-05-31
Author: lindsey.gray@gmail.com
File Name: torch_geometric/utils/degree.py
Class Name:
Method Name: degree
Project Name: rusty1s/pytorch_geometric
Commit Name: 6bc731ed2be57b780d3fe270aae00937e6cbab7c
Time: 2019-01-09
Author: riccardobucco@gmail.com
File Name: torch_geometric/nn/conv/gcn_conv.py
Class Name: GCNConv
Method Name: forward
Project Name: rusty1s/pytorch_geometric
Commit Name: a03dda03bc902cd96dce55a1d6396867c48ab744
Time: 2020-05-23
Author: lindsey.gray@gmail.com
File Name: torch_geometric/utils/degree.py
Class Name:
Method Name: degree