-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Doc] Update the docstring of distributed APIs. (dmlc#2025)
* add doc. * update DistGraph. * add DistTensor. * update DistEmbedding. * add partition.py * add sampling. * fix. * add graph partition book and create a base class. * fix test. * add rst. * update doc rst. * update. * fix. * fix docs * update distributed tensor and embeddings. * add checks. * update DistGraph. * update initialization. * fix graph partition book. * update graph partition book. * update partition. * update partition. * fix. * add example code. * update DistGraph * Update python/dgl/distributed/dist_context.py Co-authored-by: Quan (Andy) Gan <[email protected]> * Update python/dgl/distributed/dist_context.py Co-authored-by: Quan (Andy) Gan <[email protected]> * Update python/dgl/distributed/dist_dataloader.py Co-authored-by: Quan (Andy) Gan <[email protected]> * Update python/dgl/distributed/dist_dataloader.py Co-authored-by: Quan (Andy) Gan <[email protected]> * Update python/dgl/distributed/dist_dataloader.py Co-authored-by: Quan (Andy) Gan <[email protected]> * update initialize. * update dataloader. * update distgraph. * update DistGraph. * update DistTensor. * update. * more updates. * fix lint. * add num_nodes and num_edges Co-authored-by: Chao Ma <[email protected]> Co-authored-by: Quan (Andy) Gan <[email protected]> Co-authored-by: xiang song(charlie.song) <[email protected]>
- Loading branch information
1 parent
3d65484
commit 75ffc31
Showing
14 changed files
with
899 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
.. _api-distributed: | ||
|
||
dgl.distributed | ||
================================= | ||
|
||
.. automodule:: dgl.distributed | ||
|
||
Initialization | ||
--------------- | ||
|
||
.. autosummary:: | ||
:toctree: ../../generated/ | ||
|
||
initialize | ||
|
||
Distributed Graph | ||
----------------- | ||
|
||
.. autoclass:: DistGraph | ||
:members: ndata, edata, idtype, device, ntypes, etypes, number_of_nodes, number_of_edges, node_attr_schemes, edge_attr_schemes, rank, find_edges, get_partition_book, barrier, local_partition | ||
|
||
Distributed Tensor | ||
------------------ | ||
|
||
.. autoclass:: DistTensor | ||
:members: part_policy, shape, dtype, name | ||
|
||
Distributed Embedding | ||
--------------------- | ||
|
||
.. autoclass:: DistEmbedding | ||
|
||
.. autoclass:: SparseAdagrad | ||
:members: step | ||
|
||
Distributed workload split | ||
-------------------------- | ||
|
||
.. autosummary:: | ||
:toctree: ../../generated/ | ||
|
||
node_split | ||
edge_split | ||
|
||
Distributed Sampling | ||
-------------------- | ||
|
||
Distributed DataLoader | ||
`````````````````````` | ||
|
||
.. currentmodule:: dgl.distributed.dist_dataloader | ||
|
||
.. autoclass:: DistDataLoader | ||
|
||
Distributed Neighbor Sampling | ||
````````````````````````````` | ||
|
||
.. currentmodule:: dgl.distributed.graph_services | ||
|
||
.. autosummary:: | ||
:toctree: ../../generated/ | ||
|
||
sample_neighbors | ||
find_edges | ||
in_subgraph | ||
|
||
Partition | ||
--------- | ||
|
||
Graph partition book | ||
```````````````````` | ||
|
||
.. currentmodule:: dgl.distributed.graph_partition_book | ||
|
||
.. autoclass:: GraphPartitionBook | ||
:members: shared_memory, num_partitions, metadata, nid2partid, eid2partid, partid2nids, partid2eids, nid2localnid, eid2localeid, partid | ||
|
||
.. autoclass:: PartitionPolicy | ||
:members: policy_str, part_id, partition_book, to_local, to_partid, get_part_size, get_size | ||
|
||
Split and Load Graphs | ||
````````````````````` | ||
|
||
.. currentmodule:: dgl.distributed.partition | ||
|
||
.. autosummary:: | ||
:toctree: ../../generated/ | ||
|
||
load_partition | ||
load_partition_book | ||
partition_graph | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ API Reference | |
dgl.function | ||
sampling | ||
dgl.dataloading | ||
dgl.distributed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.