5f44a4efce7a064aeba9b50e759a0f27cb2ccf75,python/dgl/transform.py,,to_block,#Any#Any#Any#,1573
Before Change
if nodes is not None:
dst_nodes_nd.append(F.to_dgl_nd(nodes))
else:
dst_nodes_nd.append(nd.NULL[g._idtype_str])
new_graph_index, src_nodes_nd, induced_edges_nd = _CAPI_DGLToBlock(
g._graph, dst_nodes_nd, include_dst_in_src)
After Change
dst_nodes = {g.ntypes[0]: dst_nodes}
dst_node_ids = [
utils.toindex(dst_nodes.get(ntype, []), g._idtype_str).tousertensor()
for ntype in g.ntypes]
dst_node_ids_nd = [F.to_dgl_nd(nodes) for nodes in dst_node_ids]
new_graph_index, src_nodes_nd, induced_edges_nd = _CAPI_DGLToBlock(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/dgl
Commit Name: 5f44a4efce7a064aeba9b50e759a0f27cb2ccf75
Time: 2020-09-10
Author: coin2028@hotmail.com
File Name: python/dgl/transform.py
Class Name:
Method Name: to_block
Project Name: dmlc/dgl
Commit Name: fc7cd275980445b8f63bb25ccec51e33577f6c1a
Time: 2020-06-22
Author: VoVAllen@users.noreply.github.com
File Name: python/dgl/distributed/sampling.py
Class Name:
Method Name: sample_neighbors
Project Name: dmlc/dgl
Commit Name: 25ac33440334fd2fdfe3fe4e4dd3dd1428601a47
Time: 2021-01-24
Author: zhengda1936@gmail.com
File Name: python/dgl/distributed/graph_services.py
Class Name:
Method Name: sample_neighbors