Call lazy_reset_grad in on-device training docs (#16696)

This commit is contained in:
Danny Friar 2023-07-13 21:29:54 +01:00 committed by GitHub
parent a461608409
commit 5de2e2fb76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ Sample usage:
module.train()
training_loss = module(...)
optimizer.step()
module.lazy_reset_grad
module.lazy_reset_grad()
# Eval
module.eval()