mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Replace assert statement with explicit ValueError exception to ensure the validation check is not removed when Python runs with optimization flag (-O). This is a draft PR to confirm the process. Fixes partially #164878. Pull Request resolved: https://github.com/pytorch/pytorch/pull/164926 Approved by: https://github.com/fffrog, https://github.com/albanD Co-authored-by: Jiawei Li <ljw1101.vip@gmail.com> |
||
|---|---|---|
| .. | ||
| _experimental | ||
| scheduler | ||
| sparsifier | ||
| __init__.py | ||
| _mappings.py | ||