pytorch/torch/_dynamo
Aaron Gokaslan 1562dae62c [BE]: Apply RUF025 dict.fromkeys preview rule (#118637)
Simplifies and optimizes dict construction using the `fromkeys` classmethod ctor. This also makes it really obvious when all the keys will have the same static value, which could be a bug if unintentional. It is also significantly faster than using a dict comprehension. The rule is in preview, but I am adding a forward fix for when it becomes stable.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/118637
Approved by: https://github.com/albanD
2024-01-30 20:46:54 +00:00
..
backends Update DDP dynamo debug docs (#118295) 2024-01-29 14:58:26 +00:00
repro Prefer e.is_number over not e.free_symbols in SymPy (#112688) 2023-11-06 20:05:13 +00:00
variables Add Support for CausalBias to torch compile (#116071) 2024-01-30 02:22:48 +00:00
__init__.py [Dynamo][12/N] Remove allowed_functions.py (#116401) 2023-12-28 21:26:06 +00:00
_trace_wrapped_higher_order_op.py Support a simple subset of functions as backward hooks on intermediate tensors (#109537) 2023-10-11 01:35:37 +00:00
bytecode_analysis.py [dynamo] Enable typechecking for bytecode_analysis.py (#112972) 2023-11-08 21:17:45 +00:00
bytecode_transformation.py [dynamo] Enable typechecking for bytecode_transformation.py (#112561) 2023-11-04 19:36:27 +00:00
cache_size.py Chore: improve log message about cache size limit exceeded (#116557) 2024-01-17 06:07:18 +00:00
code_context.py [dynamo] preserve some FX node metadata of GraphModules (#107067) 2023-09-15 23:29:14 +00:00
codegen.py [dynamo] Refactor install_global_once, remove usages of install_global_unsafe (#118100) 2024-01-24 23:25:44 +00:00
compiled_autograd.py Unify MYPYINDUCTOR and MYPY (#118432) 2024-01-27 17:23:20 +00:00
comptime.py [dynamo] Enable typechecking for comptime.py (#112999) 2023-11-08 21:17:45 +00:00
config.py Update DDP dynamo debug docs (#118295) 2024-01-29 14:58:26 +00:00
convert_frame.py Revert "Enable possibly-undefined error code (#118533)" 2024-01-30 19:00:34 +00:00
current_scope_id.py
debug_utils.py Revert "Enable possibly-undefined error code (#118533)" 2024-01-30 19:00:34 +00:00
decorators.py [Dynamo][12/N] Remove allowed_functions.py (#116401) 2023-12-28 21:26:06 +00:00
device_interface.py Reconstruct streams via global registration, temporary impl to unblock FSDP (#117386) 2024-01-13 07:03:33 +00:00
eval_frame.py Revert "Enable possibly-undefined error code (#118533)" 2024-01-30 19:00:34 +00:00
exc.py [exportdb] Remove torch/fb/exportdb (#117866) 2024-01-22 17:41:33 +00:00
external_utils.py Compiled autograd: Lift autograd functions' backward and provide default key for custom autograd functions (#115573) 2024-01-10 18:01:28 +00:00
funcname_cache.py [dynamo] Enable typechecking for funcname_cache.py (#112031) 2023-10-26 04:54:16 +00:00
guards.py [easy] Faster empty LIST_LENGTH guard (#118542) 2024-01-30 13:02:18 +00:00
hooks.py [dynamo] Enable typechecking for hooks.py (#112565) 2023-11-04 19:37:06 +00:00
logging.py Add stack trace to "start tracing" log (#118217) 2024-01-25 06:53:12 +00:00
mutation_guard.py [dynamo] Make {mutation_guard,symbolic_convert,side_effects}.py pass follow_imports typechecking (#113610) 2023-11-16 01:54:00 +00:00
output_graph.py Unify MYPYINDUCTOR and MYPY (#118432) 2024-01-27 17:23:20 +00:00
polyfill.py Unify MYPYINDUCTOR and MYPY (#118432) 2024-01-27 17:23:20 +00:00
profiler.py Remove size asserts from fx_insert_profiling (#114830) 2023-12-04 19:08:36 +00:00
replay_record.py [CI] Install dill in ci (#116214) 2024-01-24 23:42:35 +00:00
resume_execution.py Add torch_dynamo to resume_in for ease of debugging (#118201) 2024-01-25 06:52:17 +00:00
side_effects.py Unify MYPYINDUCTOR and MYPY (#118432) 2024-01-27 17:23:20 +00:00
skipfiles.py [HigherOrderOp] support while_loop in dynamo (#116913) 2024-01-29 22:32:32 +00:00
source.py [dynamo] GetItemSource - restrict the supported index Source to be GlobalWeakRefSource (#117138) 2024-01-12 18:21:14 +00:00
symbolic_convert.py Revert "Enable possibly-undefined error code (#118533)" 2024-01-30 19:00:34 +00:00
test_case.py Unify MYPYINDUCTOR and MYPY (#118432) 2024-01-27 17:23:20 +00:00
test_minifier_common.py Revert "Enable possibly-undefined error code (#118533)" 2024-01-30 19:00:34 +00:00
testing.py [dynamo] fix functools.reduce() function with None as initial (#116398) 2023-12-25 21:23:28 +00:00
trace_rules.py [BE]: Apply RUF025 dict.fromkeys preview rule (#118637) 2024-01-30 20:46:54 +00:00
types.py Delete a bunch of type-ignores (#113990) 2023-11-18 02:48:38 +00:00
utils.py Revert "Enable possibly-undefined error code (#118533)" 2024-01-30 19:00:34 +00:00