[Feature] Add distributed module (#59)
* [Feature] Add distributed module * fix IS_DIST error * all_reduce_dict does operations in-place * support 'mean' operation * provide local group process * add tmpdir argument for collect_results * add unit tests * refactor unit tests * simplify steps to create multiple processes * minor fix * describe the different of *gather* in mmengine and pytorch * minor fix * add unit tests for nccl * test nccl backend in multiple gpu * add get_default_group function to handle different torch versions * minor fix * [Feature] Add distributed module * fix IS_DIST error * all_reduce_dict does operations in-place * support 'mean' operation * provide local group process * add tmpdir argument for collect_results * add unit tests * refactor unit tests * simplify steps to create multiple processes * minor fix * describe the different of *gather* in mmengine and pytorch * minor fix * add unit tests for nccl * test nccl backend in multiple gpu * add get_default_group function to handle different torch versions * minor fix * minor fix * handle torch1.5 * handle torch1.5 * minor fix * fix typo * refactor unit tests * nccl does not support gather and gather_object * fix gather * fix collect_results_cpu * fix collect_results and refactor unit tests * fix collect_results unit tests * handle torch.cat in torch1.5 * refine docstring * refine docstring * fix comments * fix comments
Showing
- .gitignore 0 additions, 1 deletion.gitignore
- docs/en/api.rst 5 additions, 0 deletionsdocs/en/api.rst
- docs/zh_cn/api.rst 5 additions, 0 deletionsdocs/zh_cn/api.rst
- mmengine/dist/__init__.py 19 additions, 0 deletionsmmengine/dist/__init__.py
- mmengine/dist/dist.py 1023 additions, 0 deletionsmmengine/dist/dist.py
- mmengine/dist/utils.py 335 additions, 0 deletionsmmengine/dist/utils.py
- tests/test_dist/test_dist.py 376 additions, 0 deletionstests/test_dist/test_dist.py
- tests/test_dist/test_utils.py 152 additions, 0 deletionstests/test_dist/test_utils.py
mmengine/dist/__init__.py
0 → 100644
mmengine/dist/dist.py
0 → 100644
This diff is collapsed.
mmengine/dist/utils.py
0 → 100644
tests/test_dist/test_dist.py
0 → 100644
tests/test_dist/test_utils.py
0 → 100644
Please register or sign in to comment