17e56b9100275068c7ad0e74c0bf247866da846f,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


    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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


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


Project Name: kentsommer/pytorch-value-iteration-networks
Commit Name: 2205fce8ac9f1d9f01f81996f7deef9a7b197a8d
Time: 2020-10-01
Author: 16188477+shuishida@users.noreply.github.com
File Name: train.py
Class Name:
Method Name: test


Project Name: kentsommer/pytorch-value-iteration-networks
Commit Name: 2205fce8ac9f1d9f01f81996f7deef9a7b197a8d
Time: 2020-10-01
Author: 16188477+shuishida@users.noreply.github.com
File Name: train.py
Class Name:
Method Name: train


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