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``.
Example::
# 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)
# 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