W3cubDocs

/PyTorch 2.9

Subprocess Handling

Created On: Mar 08, 2024 | Last Updated On: Mar 08, 2024

Retrieve SubprocessHandler

torch.distributed.elastic.multiprocessing.subprocess_handler.handlers.get_subprocess_handler(entrypoint, args, env, stdout, stderr, local_rank_id, numa_options=None) [source]
Return type

SubprocessHandler

SubprocessHandler

class torch.distributed.elastic.multiprocessing.subprocess_handler.subprocess_handler.SubprocessHandler(entrypoint, args, env, stdout, stderr, local_rank_id, numa_options) [source]

Convenience wrapper around python’s subprocess.Popen. Keeps track of meta-objects associated to the process (e.g. stdout and stderr redirect fds).

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/elastic/subprocess_handler.html