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
2d5b71bd
Commit
2d5b71bd
authored
May 21, 2018
by
Christian Sarofeen
Browse files
Add device sync in imagenet example.
parent
e733e78c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
examples/imagenet/main.py
examples/imagenet/main.py
+1
-0
No files found.
examples/imagenet/main.py
View file @
2d5b71bd
...
...
@@ -300,6 +300,7 @@ def train(train_loader, model, criterion, optimizer, epoch):
loss
.
backward
()
optimizer
.
step
()
torch
.
cuda
.
synchronize
()
# measure elapsed time
batch_time
.
update
(
time
.
time
()
-
end
)
...
...
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