013a73545712580cde4b8dece8bd0813a295c8f9,test/transforms/test_grid_sampling.py,,test_grid_sampling,#,7

Before Change



    out_data = GridSampling(0.04, 2)()(Data(pos=pos, batch=batch, y=y))

    assert out_data.y == uniq[0]

After Change



    out_data = GridSampling(0.04, 2)()(Data(pos=pos, batch=batch, y=y))

    out_y = out_data.y.detach().cpu().numpy()

    npt.assert_array_almost_equal(answer, out_y)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: 013a73545712580cde4b8dece8bd0813a295c8f9
Time: 2020-01-15
Author: thomas.chaton.ai@gmail.com
File Name: test/transforms/test_grid_sampling.py
Class Name:
Method Name: test_grid_sampling


Project Name: dmlc/dgl
Commit Name: 84702916d36ad0b35a508cbce77d0ee36e0fedb6
Time: 2019-06-04
Author: xianyu.zeng@transwarp.io
File Name: tests/compute/test_nodeflow.py
Class Name:
Method Name: test_block_adj_matrix


Project Name: kymatio/kymatio
Commit Name: 40c36588afa4e7d6981fcfad9f78dc1f78f6593f
Time: 2018-11-21
Author: edouard.oyallon@ens.fr
File Name: scattering/scattering2d/tests/test_scattering.py
Class Name:
Method Name: test_Scattering2D