mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
1 file changed
+2
-2
@@ -816,7 +816,7 @@
|
||||
" loss.backward()\n",
|
||||
"\n",
|
||||
" # 5. Step the optimizer (perform gradient descent)\n",
|
||||
" optimizer.step() # by default how the optimizer changes will acculumate through the loop so... we have to zero them above in step 3 for the next iteration of the loop\n",
|
||||
" optimizer.step() # by default how the optimizer changes will accumulate through the loop so... we have to zero them above in step 3 for the next iteration of the loop\n",
|
||||
"\n",
|
||||
" ### Testing\n",
|
||||
" model_0.eval() # turns off different settings in the model not needed for evaluation/testing (dropout/batch norm layers)\n",
|
||||
@@ -2297,4 +2297,4 @@
|
||||
"outputs": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user