mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Summary:
## No Functional Change
- Refactor Subprocess Handler into a separate folder for easier subclassing
- SubprocessHandler
- added `local_rank_id` in `SubprocessHandler` to make it available as a field in the class
- pass in `local_rank_id` from subprocess start
Test Plan: No functional changes.
Differential Revision: D54038627
#suppress-api-compatibility-check
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120373
Approved by: https://github.com/kurman
21 lines
683 B
ReStructuredText
21 lines
683 B
ReStructuredText
.. _elastic_subprocess_handler-api:
|
|
|
|
Subprocess Handling
|
|
======================
|
|
|
|
.. automodule:: torch.distributed.elastic.multiprocessing.subprocess_handler
|
|
.. automodule:: torch.distributed.elastic.multiprocessing.subprocess_handler.subprocess_handler
|
|
.. automodule:: torch.distributed.elastic.multiprocessing.subprocess_handler.handlers
|
|
|
|
Retrieve SubprocessHandler
|
|
---------------------------
|
|
|
|
.. autofunction:: torch.distributed.elastic.multiprocessing.subprocess_handler.handlers.get_subprocess_handler
|
|
|
|
SubprocessHandler
|
|
---------------------
|
|
|
|
.. currentmodule:: torch.distributed.elastic.multiprocessing.subprocess_handler.subprocess_handler
|
|
|
|
.. autoclass:: SubprocessHandler
|