Skip to content

Commit a08b7f8

Browse files
authored
Add information to xla.launch (#8724)
1 parent 0c4e82d commit a08b7f8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

torch_xla/torch_xla.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,18 @@ def launch(
217217
):
218218
""" Entry to launch multiprocess.
219219
220+
Args:
221+
fn: The function to be called for each device which takes part of the
222+
replication. The function will be called with a first argument being
223+
the global index of the process within the replication, followed by the
224+
arguments passed in `args`.
225+
args: The arguments for `fn`.
226+
Default: Empty tuple
227+
start_method: The Python `multiprocessing` process creation method.
228+
Default: `spawn`
229+
debug_single_process: debug flag to run only in one process.
230+
Default: False
231+
220232
Raises:
221233
NotImplementedError: SPMD is not supported yet.
222234
"""

0 commit comments

Comments
 (0)