From ddbe151e40e712c30d0c1596273606296c22eb30 Mon Sep 17 00:00:00 2001 From: Nikhil Gupta Date: Fri, 9 Feb 2024 00:53:30 -0800 Subject: [PATCH] Fix docstring Summary: as title Reviewed By: JKSenthil Differential Revision: D53581367 fbshipit-source-id: 7b18cad17d296d294348b35e80a72e9def20d245 --- torchtnt/utils/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchtnt/utils/env.py b/torchtnt/utils/env.py index 1cc70b0131..bd6d2e2711 100644 --- a/torchtnt/utils/env.py +++ b/torchtnt/utils/env.py @@ -51,7 +51,7 @@ def init_from_env( """Utility function that initializes the device and process group, if applicable. The global process group is initialized only if: - - torch.distributed is available is not already initialized + - torch.distributed is available and has not already been initialized - the program has been launched on multiple processes This is intended as a convenience to include at the beginning of scripts that follow