Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1904e48 commit e87b579Copy full SHA for e87b579
1 file changed
README.md
@@ -67,6 +67,9 @@ model, optimizer = amp.initialize(model, optimizer, opt_level=opt_level)
67
68
# Train your model
69
...
70
+with amp.scale_loss(loss, optimizer) as scaled_loss:
71
+ scaled_loss.backward()
72
+...
73
74
# Save checkpoint
75
checkpoint = {
0 commit comments