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
789afd89
Commit
789afd89
authored
May 09, 2018
by
Christian Sarofeen
Browse files
Need to set_epoch in distributed example for sampler
parent
3ab105d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
examples/distributed/main.py
examples/distributed/main.py
+4
-0
No files found.
examples/distributed/main.py
View file @
789afd89
...
@@ -196,5 +196,9 @@ def test():
...
@@ -196,5 +196,9 @@ def test():
for
epoch
in
range
(
1
,
args
.
epochs
+
1
):
for
epoch
in
range
(
1
,
args
.
epochs
+
1
):
#=====START: ADDED FOR DISTRIBUTED======
train_sampler
.
set_epoch
(
epoch
)
#=====END: ADDED FOR DISTRIBUTED======
train
(
epoch
)
train
(
epoch
)
test
()
test
()
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