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
38ea0e90
Commit
38ea0e90
authored
May 31, 2018
by
Pooya Davoodi
Browse files
Read world_size argument in multiproc if specified in argslist
parent
ea93767d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/parallel/multiproc.py
apex/parallel/multiproc.py
+1
-1
No files found.
apex/parallel/multiproc.py
View file @
38ea0e90
...
...
@@ -13,7 +13,7 @@ argslist = list(sys.argv)[1:]
world_size
=
torch
.
cuda
.
device_count
()
if
'--world-size'
in
argslist
:
argslist
[
argslist
.
index
(
'--world-size'
)
+
1
]
=
str
(
world_size
)
world_size
=
int
(
argslist
[
argslist
.
index
(
'--world-size'
)
+
1
])
else
:
argslist
.
append
(
'--world-size'
)
argslist
.
append
(
str
(
world_size
))
...
...
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