benchmark
613a950a - Attach cause to some exceptions and enable RUFF TRY200 (#111496)

Commit
2 years ago
Attach cause to some exceptions and enable RUFF TRY200 (#111496) Summary: Did some easy fixes from enabling TRY200. Most of these seem like oversights instead of intentional. The proper way to silence intentional errors is with `from None` to note that you thought about whether it should contain the cause and decided against it. X-link: https://github.com/pytorch/pytorch/pull/111496 Approved by: https://github.com/malfet Reviewed By: izaitsevfb Differential Revision: D50511644 fbshipit-source-id: dde471d21c7fa8045b0611b4e20cb9f5a09b10ac
Author
Parents
Loading