"src/vscode:/vscode.git/clone" did not exist on "3e72c53ae0ecd16ae057aa63e81f0c57f5828fa8"
Commit 975ed322 authored by Michael Carilli's avatar Michael Carilli
Browse files

Fix #193

parent 1be97cce
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment