updated optimizer_step docs
This commit is contained in:
parent
fd845d41c0
commit
699fbabda7
|
@ -92,6 +92,9 @@ def optimizer_step(self, current_epoch, batch_nb, optimizer, optimizer_i):
|
||||||
if batch_nb % 4 == 0 :
|
if batch_nb % 4 == 0 :
|
||||||
optimizer.step()
|
optimizer.step()
|
||||||
optimizer.zero_grad()
|
optimizer.zero_grad()
|
||||||
|
|
||||||
|
# ...
|
||||||
|
# add as many optimizers as you want
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue