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
975ed322
"src/vscode:/vscode.git/clone" did not exist on "3e72c53ae0ecd16ae057aa63e81f0c57f5828fa8"
Commit
975ed322
authored
Mar 11, 2019
by
Michael Carilli
Browse files
Fix #193
parent
1be97cce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/amp.rst
docs/source/amp.rst
+1
-1
No files found.
docs/source/amp.rst
View file @
975ed322
...
@@ -27,7 +27,7 @@ override the defaults established by the ``opt_level``.
...
@@ -27,7 +27,7 @@ override the defaults established by the ``opt_level``.
Example::
Example::
# Declare model and optimizer as usual
# Declare model and optimizer as usual
model = torch.nn.Linear(D_in, D_out).cuda()
.half()
model = torch.nn.Linear(D_in, D_out).cuda()
optimizer = torch.optim.SGD(model.parameters(), lr=1e-3)
optimizer = torch.optim.SGD(model.parameters(), lr=1e-3)
# Allow Amp to perform casts as required by the opt_level
# Allow Amp to perform casts as required by the opt_level
...
...
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