cce4382f73d0976fb94b003949acd668377a0869,torch_geometric/utils/geodesic.py,,geodesic_distance,#Any#Any#Any#Any#Any#Any#,10
Before Change
d = None if dest is None else dest[i:i + 1]
out = gdist.compute_gdist(pos, face, s, d, max_distance * norm) / norm
out = torch .from_numpy(out).to(dtype)
outs.append(out)
out = torch.cat(outs, dim=0)
After Change
dest = None if dest is None else dest.detach().cpu().to(torch.int).numpy()
pool = mp.Pool(mp.cpu_count())
outs = pool.starmap(
_parallel_loop,
[(pos, face, src, dest, max_distance, norm, i, dtype) for i in range(len(src))]
)
pool.close()
out = torch.cat(outs, dim=0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: rusty1s/pytorch_geometric
Commit Name: cce4382f73d0976fb94b003949acd668377a0869
Time: 2020-04-03
Author: j-magnusson@t-online.de
File Name: torch_geometric/utils/geodesic.py
Class Name:
Method Name: geodesic_distance
Project Name: pfnet/optuna
Commit Name: e4627494d500e3788afee0c39a9dd3c86a66d2f0
Time: 2020-11-17
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/integration/botorch.py
Class Name: BoTorchSampler
Method Name: sample_relative
Project Name: rusty1s/pytorch_geometric
Commit Name: 17e56b9100275068c7ad0e74c0bf247866da846f
Time: 2020-05-31
Author: j-magnusson@t-online.de
File Name: torch_geometric/utils/geodesic.py
Class Name:
Method Name: geodesic_distance