mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
This PR fixes flake8 B028 warning by specifying stacklevel=2 in `warnings.warn`. The advantage is that users can know more contextual information about PyTorch warnings. Pull Request resolved: https://github.com/pytorch/pytorch/pull/166224 Approved by: https://github.com/ezyang |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _deprecation_warning.py | ||
| apply_optimizer_in_backward.py | ||
| functional_adadelta.py | ||
| functional_adagrad.py | ||
| functional_adam.py | ||
| functional_adamax.py | ||
| functional_adamw.py | ||
| functional_rmsprop.py | ||
| functional_rprop.py | ||
| functional_sgd.py | ||
| named_optimizer.py | ||
| optimizer.py | ||
| post_localSGD_optimizer.py | ||
| utils.py | ||
| zero_redundancy_optimizer.py | ||
| zero_redundancy_optimizer.pyi | ||