MCPcopy Index your code
hub / github.com/dmlc/dgl / issue_remote_req

Function issue_remote_req

python/dgl/distributed/graph_services.py:974–998  ·  view source on GitHub ↗
(node_ids)

Source from the content-addressed store, hash-verified

972 nodes = F.cat(homo_nids, 0)
973
974 def issue_remote_req(node_ids):
975 if prob is not None and (not use_graphbolt):
976 # See NOTE 1
977 _prob = [
978 (
979 # NOTE (BarclayII)
980 # Currently DistGraph.edges[] does not accept canonical etype.
981 g.edges[etype].data[prob].kvstore_key
982 if prob in g.edges[etype].data
983 else ""
984 )
985 for etype in g.canonical_etypes
986 ]
987 else:
988 _prob = prob
989 return SamplingRequestEtype(
990 node_ids,
991 fanout,
992 edge_dir=edge_dir,
993 prob=_prob,
994 exclude_edges=None,
995 replace=replace,
996 etype_sorted=etype_sorted,
997 use_graphbolt=use_graphbolt,
998 )
999
1000 def local_access(local_g, partition_book, local_nids):
1001 etype_offset = gpb.local_etype_offset

Callers 3

_distributed_accessFunction · 0.85
_distributed_edge_accessFunction · 0.85

Calls 6

SamplingRequestClass · 0.85
EdgesRequestClass · 0.85
InSubgraphRequestClass · 0.85
InDegreeRequestClass · 0.85
OutDegreeRequestClass · 0.85

Tested by

no test coverage detected