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
4a8cf7ad
"git@developer.sourcefind.cn:OpenDAS/autoawq.git" did not exist on "6b7992aa9b0f87cba4d529bb93257864cf2d5b56"
Unverified
Commit
4a8cf7ad
authored
Jul 09, 2018
by
mcarilli
Committed by
GitHub
Jul 09, 2018
Browse files
Fix single-GPU fallback for examples/distributed
parent
31931985
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/distributed/main.py
examples/distributed/main.py
+2
-1
No files found.
examples/distributed/main.py
View file @
4a8cf7ad
...
@@ -201,7 +201,8 @@ def test():
...
@@ -201,7 +201,8 @@ def test():
for
epoch
in
range
(
1
,
args
.
epochs
+
1
):
for
epoch
in
range
(
1
,
args
.
epochs
+
1
):
#=====START: ADDED FOR DISTRIBUTED======
#=====START: ADDED FOR DISTRIBUTED======
train_sampler
.
set_epoch
(
epoch
)
if
args
.
distributed
:
train_sampler
.
set_epoch
(
epoch
)
#=====END: ADDED FOR DISTRIBUTED======
#=====END: ADDED FOR DISTRIBUTED======
train
(
epoch
)
train
(
epoch
)
...
...
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