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
bc62f325
Commit
bc62f325
authored
Nov 30, 2018
by
Michael Carilli
Browse files
Syncing main.py a bit more
parent
2a8022ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
examples/imagenet/main.py
examples/imagenet/main.py
+4
-0
No files found.
examples/imagenet/main.py
View file @
bc62f325
...
...
@@ -118,6 +118,10 @@ def main():
if
args
.
fp16
:
assert
torch
.
backends
.
cudnn
.
enabled
,
"fp16 mode requires cudnn backend to be enabled."
if
args
.
static_loss_scale
!=
1.0
:
if
not
args
.
fp16
:
print
(
"Warning: if --fp16 is not used, static_loss_scale will be ignored."
)
# create model
if
args
.
pretrained
:
print
(
"=> using pre-trained model '{}'"
.
format
(
args
.
arch
))
...
...
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