Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
apex
Commits
f37fdf07
Commit
f37fdf07
authored
Dec 03, 2019
by
Michael Carilli
Browse files
Don't check if distributed is initialized on Windows
parent
82dac9c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
apex/amp/_amp_state.py
apex/amp/_amp_state.py
+2
-1
No files found.
apex/amp/_amp_state.py
View file @
f37fdf07
...
...
@@ -36,7 +36,8 @@ def warn_or_err(msg):
def
maybe_print
(
msg
,
rank0
=
False
):
distributed
=
torch
.
distributed
.
is_initialized
()
and
\
distributed
=
torch
.
distributed
.
is_available
()
and
\
torch
.
distributed
.
is_initialized
()
and
\
torch
.
distributed
.
get_world_size
()
>
1
if
_amp_state
.
verbosity
>
0
:
if
rank0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment