generated from sehoffmann/python-template
-
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: firts steps towards a structured API documentation
- Loading branch information
1 parent
39c0720
commit 4e955fe
Showing
6 changed files
with
103 additions
and
11 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
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 |
---|---|---|
@@ -1,11 +1,40 @@ | ||
""" | ||
Hello world | ||
""" | ||
|
||
from dmlcloud.pipeline import TrainingPipeline | ||
from dmlcloud.stage import Stage, TrainValStage | ||
from dmlcloud.util.distributed import * | ||
|
||
__version__ = "0.3.3" | ||
|
||
__all__ = [ | ||
'TrainingPipeline', | ||
'Stage', | ||
'TrainValStage', | ||
] | ||
|
||
# Ditributed helpers | ||
__all__ += [ | ||
'has_slurm', | ||
'has_environment', | ||
'has_mpi', | ||
'is_root', | ||
'root_only', | ||
'root_first', | ||
'rank', | ||
'world_size', | ||
'local_rank', | ||
'local_world_size', | ||
'local_node', | ||
'print_worker', | ||
'print_root', | ||
'all_gather_object', | ||
'gather_object', | ||
'broadcast_object', | ||
'init_process_group_dummy', | ||
'init_process_group_slurm', | ||
'init_process_group_MPI', | ||
'init_process_group_auto', | ||
'deinitialize_torch_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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,46 @@ | ||
.. currentmodule:: dmlcloud | ||
|
||
API Reference | ||
========= | ||
============= | ||
|
||
This the API reference for the dmlcloud package. | ||
|
||
.. autosummary:: | ||
:toctree: generated | ||
|
||
TrainingPipeline | ||
Stage | ||
|
||
|
||
Initialization | ||
-------------- | ||
.. autosummary:: | ||
:toctree: generated | ||
|
||
init_process_group_dummy | ||
init_process_group_slurm | ||
init_process_group_MPI | ||
init_process_group_auto | ||
|
||
This is an automatically generated API reference for the dmlcloud package. | ||
|
||
Distributed Helpers | ||
------------------- | ||
.. autosummary:: | ||
:toctree: generated | ||
|
||
dmlcloud | ||
has_slurm | ||
has_environment | ||
has_mpi | ||
is_root | ||
root_only | ||
root_first | ||
rank | ||
world_size | ||
local_rank | ||
local_world_size | ||
local_node | ||
print_worker | ||
print_root | ||
all_gather_object | ||
gather_object | ||
broadcast_object |