2c170a8c17a1e887af36af0e53c332be47893b21,tests/mxnet/test_sampler.py,,verify_subgraph,#Any#Any#Any#,37
Before Change
return np.sum(np.sort(arr) == arr) == len(arr)
def verify_subgraph(g, subg, seed_id):
seed_id = utils.toindex(seed_id)
src, dst, eid = g._graph.in_edges(utils.toindex(seed_id))
child_id = subg.map_to_subgraph_nid(seed_id)
child_src, child_dst, child_eid = subg._graph.in_edges(child_id)
child_src = child_src.tousertensor().asnumpy()
// We don"t allow duplicate elements in the neighbor list.
After Change
return np.sum(np.sort(arr) == arr) == len(arr)
def verify_subgraph(g, subg, seed_id):
src, dst, eid = g.in_edges(seed_id, form="all")
child_id = subg.map_to_subgraph_nid(seed_id)
child_src, child_dst, child_eid = subg.in_edges(child_id, form="all")
child_src = child_src.asnumpy()
// We don"t allow duplicate elements in the neighbor list.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dmlc/dgl
Commit Name: 2c170a8c17a1e887af36af0e53c332be47893b21
Time: 2018-12-03
Author: zhengda1936@gmail.com
File Name: tests/mxnet/test_sampler.py
Class Name:
Method Name: verify_subgraph
Project Name: dmlc/dgl
Commit Name: 2c170a8c17a1e887af36af0e53c332be47893b21
Time: 2018-12-03
Author: zhengda1936@gmail.com
File Name: tests/mxnet/test_sampler.py
Class Name:
Method Name: test_10neighbor_sampler_all
Project Name: dmlc/dgl
Commit Name: 2c170a8c17a1e887af36af0e53c332be47893b21
Time: 2018-12-03
Author: zhengda1936@gmail.com
File Name: tests/mxnet/test_sampler.py
Class Name:
Method Name: test_1neighbor_sampler_all