TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-08

macros

class tensorplay.distributed.elastic.utils.macros[source]

Substitution variables usable in worker argument templates.

Any ${field} token inside the worker argument list is replaced with the concrete value for the worker being launched. Supported fields are the entries of fields.

classmethod substitute(args: list[str], local_rank: str | None = None) → list[str][source]

Replace ${field} tokens in args; unknown tokens are kept.

classmethod to_map() → dict[str, str][source]

Current macro values from the running process’ environment.

On this page

Ask DeepWiki