latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
JoinHook
- class tensorplay.distributed.algorithms.JoinHook[source]
This defines a join hook, which provides two entry points in the join context manager.
Entry points : a main hook, which is called repeatedly while there exists a non-joined process, and a post-hook, which is called once all processes have joined.
To implement a join hook for the generic join context manager, define a class that inherits from
JoinHookand overridemain_hook()andpost_hook()as appropriate.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

