pytorch/test/quantization/core
Aaron Gokaslan 3fe437b24b [BE]: Update flake8 to v6.1.0 and fix lints (#116591)
Updates flake8 to v6.1.0 and fixes a few lints using sed and some ruff tooling.
- Replace `assert(0)` with `raise AssertionError()`
- Remove extraneous parenthesis i.e.
  - `assert(a == b)` -> `assert a == b`
  - `if(x > y or y < z):`->`if x > y or y < z:`
  - And `return('...')` -> `return '...'`

Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/116591
Approved by: https://github.com/albanD, https://github.com/malfet
2024-01-03 06:04:44 +00:00
..
experimental [BE]: Enable F821 and fix bugs (#116579) 2024-01-01 08:40:46 +00:00
__init__.py
test_backend_config.py
test_docs.py
test_quantized_functional.py
test_quantized_module.py
test_quantized_op.py [BE]: Update flake8 to v6.1.0 and fix lints (#116591) 2024-01-03 06:04:44 +00:00
test_quantized_tensor.py [Quantized] Fixed equal_quantized_cpu for QUInt4 (#116307) 2023-12-26 21:52:28 +00:00
test_top_level_apis.py
test_utils.py
test_workflow_module.py [ao] making hist_obs handle torch.inf and closeby values (#103467) 2023-12-08 21:41:31 +00:00
test_workflow_ops.py [BE]: Update flake8 to v6.1.0 and fix lints (#116591) 2024-01-03 06:04:44 +00:00