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
Fairseq
Commits
5b533aa6
Commit
5b533aa6
authored
Aug 13, 2018
by
Myle Ott
Browse files
Increase max buffer size in all_gather_list
parent
f1d81db8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fairseq/distributed_utils.py
fairseq/distributed_utils.py
+1
-1
No files found.
fairseq/distributed_utils.py
View file @
5b533aa6
...
@@ -52,7 +52,7 @@ def suppress_output():
...
@@ -52,7 +52,7 @@ def suppress_output():
__builtin__
.
print
=
print
__builtin__
.
print
=
print
def
all_gather_list
(
data
,
max_size
=
4096
):
def
all_gather_list
(
data
,
max_size
=
16384
):
"""Gathers arbitrary data from all nodes into a list."""
"""Gathers arbitrary data from all nodes into a list."""
world_size
=
torch
.
distributed
.
get_world_size
()
world_size
=
torch
.
distributed
.
get_world_size
()
if
not
hasattr
(
all_gather_list
,
'_in_buffer'
)
or
\
if
not
hasattr
(
all_gather_list
,
'_in_buffer'
)
or
\
...
...
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