pytorch
57b54dfe - Fix Optimizer.zero_grad type annotation (#76998)

Commit
2 years ago
Fix Optimizer.zero_grad type annotation (#76998) `Optimizer.zero_grad()` defines the `set_to_none` argument as `bool`, not `Optional[bool]` Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/76998 Approved by: https://github.com/albanD
Author
James Reed
Committer
Parents
Loading