mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-03 03:58:54 +00:00
Call lazy_reset_grad in on-device training docs (#16696)
This commit is contained in:
parent
a461608409
commit
5de2e2fb76
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ Sample usage:
|
|||
module.train()
|
||||
training_loss = module(...)
|
||||
optimizer.step()
|
||||
module.lazy_reset_grad
|
||||
module.lazy_reset_grad()
|
||||
|
||||
# Eval
|
||||
module.eval()
|
||||
|
|
|
|||
Loading…
Reference in a new issue