534a10d60d3c5a356c8121f9b3c53f49cf873f96,torch_geometric/transforms/gdc.py,GDC,diffusion_matrix_approx,#GDC#Any#Any#Any#Any#Any#,257
Before Change
// (except for errors due to approximation).
diag_idx = torch.arange(0, num_nodes, dtype=torch.long,
device=edge_index.device)
diag_idx = diag_idx.unsqueeze(0).repeat(2, 1)
D_vec_sqrt = torch.sqrt(D_vec_orig)
edge_index, edge_weight = spspmm(diag_idx, D_vec_sqrt,
edge_index, edge_weight,
num_nodes, num_nodes,
num_nodes)
D_vec_invsqrt = 1 / D_vec_sqrt
edge_index, edge_weight = spspmm(edge_index, edge_weight,
diag_idx, D_vec_invsqrt,
num_nodes, num_nodes,
num_nodes)
elif normalization in ["col", "row"]:
pass
else:
raise ValueError(
After Change
// Since we use the original degrees for this it will be like
// we had used symmetric normalization from the beginning
// (except for errors due to approximation).
row , col = edge_index
deg_inv = deg.sqrt()
deg_inv_sqrt = deg.pow(-0.5)
deg_inv_sqrt[deg_inv_sqrt == float("inf")] = 0
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
Instances Project Name: rusty1s/pytorch_geometric
Commit Name: 534a10d60d3c5a356c8121f9b3c53f49cf873f96
Time: 2019-12-06
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/transforms/gdc.py
Class Name: GDC
Method Name: diffusion_matrix_approx
Project Name: mozilla/TTS
Commit Name: aa40fe1aa0382bf5148d1475dd647def1d2ed332
Time: 2021-01-06
Author: erogol@hotmail.com
File Name: TTS/tts/models/speedy_speech.py
Class Name: SpeedySpeech
Method Name: inference
Project Name: mozilla/TTS
Commit Name: aa40fe1aa0382bf5148d1475dd647def1d2ed332
Time: 2021-01-06
Author: erogol@hotmail.com
File Name: TTS/tts/models/speedy_speech.py
Class Name: SpeedySpeech
Method Name: forward
Project Name: OpenMined/PySyft
Commit Name: e50f57e068eea78df52fadc8c398c81088e7df2e
Time: 2020-07-29
Author: theo.leffyr@gmail.com
File Name: syft/frameworks/torch/mpc/fss.py
Class Name: DPF
Method Name: eval
Project Name: ixaxaar/pytorch-dnc
Commit Name: a6667bf98c59a7447a6bc55869459e83f5bdb603
Time: 2017-12-07
Author: root@ixaxaar.in
File Name: dnc/sparse_memory.py
Class Name: SparseMemory
Method Name: read_from_sparse_memory