pytorch/torch/_dynamo/variables
Xuehai Pan 758a0a88a2 [BE][Easy] enable ruff rule PIE790: unnecessary pass statement (#133200)
This PR removes unnecessary `pass` statement. This is semanticly safe because the bytecode for the Python code does not change.

Note that if there is a docstring in the function, a empty function does not need a `pass` statement as placeholder.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/133200
Approved by: https://github.com/malfet, https://github.com/eqy, https://github.com/kit1980
2024-08-15 15:50:19 +00:00
..
__init__.py [dynamo] revert map/zip iterator related changes (#132528) 2024-08-04 18:46:55 +00:00
base.py [dynamo] revert map/zip iterator related changes (#132528) 2024-08-04 18:46:55 +00:00
builder.py [BE][Easy] enable ruff rule PIE790: unnecessary pass statement (#133200) 2024-08-15 15:50:19 +00:00
builtin.py Implement filter in dynamo (#131674) 2024-08-14 14:54:13 +00:00
constant.py [easy][dynamo] Add tx as an arg in getitem_const (#132899) 2024-08-07 21:35:41 +00:00
ctx_manager.py [Dynamo] add EventVariable reconstruct (#133236) 2024-08-14 02:56:11 +00:00
dicts.py [BE][Easy] enable ruff rule PIE790: unnecessary pass statement (#133200) 2024-08-15 15:50:19 +00:00
distributed.py [TorchRec] Add Support for FakeProcessGroup (#133039) 2024-08-10 01:10:47 +00:00
functions.py Add basic mypy annotations to dynamo (#132415) 2024-08-04 18:43:36 +00:00
higher_order_ops.py Add basic mypy annotations to dynamo (#132415) 2024-08-04 18:43:36 +00:00
iter.py [dynamo] revert map/zip iterator related changes (#132528) 2024-08-04 18:46:55 +00:00
lazy.py Add basic mypy annotations to dynamo (#132415) 2024-08-04 18:43:36 +00:00
lists.py [dynamo][lists][stable diffusion] Do not add source on list slice (#132912) 2024-08-08 02:23:07 +00:00
misc.py [BE][Easy] enable ruff rule PIE790: unnecessary pass statement (#133200) 2024-08-15 15:50:19 +00:00
nn_module.py Add basic mypy annotations to dynamo (#132415) 2024-08-04 18:43:36 +00:00
optimizer.py [easy][dynamo] Add tx as an arg in getitem_const (#132899) 2024-08-07 21:35:41 +00:00
script_object.py Add basic mypy annotations to dynamo (#132415) 2024-08-04 18:43:36 +00:00
sdpa.py Grouped Query Attention (#132689) 2024-08-07 05:35:36 +00:00
tensor.py Add basic mypy annotations to dynamo (#132415) 2024-08-04 18:43:36 +00:00
torch_function.py Fix _dynamo.variables.torch_function.global_mangled_class_name (#132744) 2024-08-09 22:19:01 +00:00
torch.py [Dynamo] Support torch.autograd._is_checkpoint_valid (#132611) 2024-08-08 04:05:08 +00:00
user_defined.py [dynamo] Partially support random.Random class (#133037) 2024-08-09 07:15:42 +00:00