pytorch/torch/_dynamo
Simon Fan 298226f358 [dynamo] check for incompatible configs (#146513)
internal: https://fb.workplace.com/groups/1075192433118967/permalink/1599802033991335/

Assuming flags don't change during compilation, we shouldn't allow incompatible configs to be set at torch.compile wrap time.

Not in this PR: For flags that need to change during compilation, we'd have to be strict about where they can be used in the compile lifecycle

Pull Request resolved: https://github.com/pytorch/pytorch/pull/146513
Approved by: https://github.com/williamwen42

Co-authored-by: Gabriel Ferns <gabeferns@meta.com>
2025-02-10 00:44:23 +00:00
..
backends [PyTorch] Add backend aot_eager_decomp_partition_with_mode (#143250) 2025-01-22 23:20:59 +00:00
polyfills [dynamo] Use polyfill to implement comparison operators (#144485) 2025-02-06 17:27:07 +00:00
repro Add accuracy issue support in AOTI Minifier (#145539) 2025-01-24 23:07:19 +00:00
variables Raise MutationError if there are side effects when returning generator (#145223) 2025-02-08 22:42:12 +00:00
__init__.py
_trace_wrapped_higher_order_op.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
bytecode_analysis.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
bytecode_transformation.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
cache_size.py Migrate from Tuple -> tuple in torch/_dynamo (#144261) 2025-01-10 07:45:57 +00:00
callback.py add pt2 callbacks for backward pass and prevent duplicate callbacks (#145732) 2025-01-28 03:50:02 +00:00
code_context.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
codegen.py Suport generators (#141055) 2025-02-08 22:42:12 +00:00
compiled_autograd.py [ca] refactor compile reasons and log to tlparse (#146386) 2025-02-05 23:33:21 +00:00
comptime.py Undo leading underscore on ctx for breakpoint (#144864) 2025-01-15 18:00:58 +00:00
config.py [dynamo] check for incompatible configs (#146513) 2025-02-10 00:44:23 +00:00
convert_frame.py [dynamo] Actionable message on recompilations for fullgraph=True (#146550) 2025-02-07 17:28:43 +00:00
create_parameter_op.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
current_scope_id.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
debug_utils.py Add "//caffe2:libtorch" to minifier TARGET file (#146203) 2025-02-01 05:37:23 +00:00
decorators.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
device_interface.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
distributed.py
eval_frame.py [dynamo] check for incompatible configs (#146513) 2025-02-10 00:44:23 +00:00
exc.py Raise MutationError if there are side effects when returning generator (#145223) 2025-02-08 22:42:12 +00:00
external_utils.py functional compiled autograd (#144707) 2025-01-27 05:20:56 +00:00
funcname_cache.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
graph_deduplication.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
graph_region_tracker.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
guards.py [dynamo] log recompile reason to dynamo_compile (#146117) 2025-02-03 21:04:04 +00:00
hooks.py
logging.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
metrics_context.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
mutation_guard.py [dynamo][dicts] Consolidate dict(..) construction (#144342) 2025-01-20 04:42:06 +00:00
output_graph.py Raise MutationError if there are side effects when returning generator (#145223) 2025-02-08 22:42:12 +00:00
pgo.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
profiler.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
replay_record.py Turn on mypy for _dynamo/variables/builtin.py (#145552) 2025-01-30 22:21:32 +00:00
resume_execution.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
side_effects.py Raise MutationError if there are side effects when returning generator (#145223) 2025-02-08 22:42:12 +00:00
source.py [dynamo][functions] Improve getattr on functions (#146075) 2025-02-03 02:01:57 +00:00
symbolic_convert.py Raise MutationError if there are side effects when returning generator (#145223) 2025-02-08 22:42:12 +00:00
tensor_version_op.py update _unsafe_set_version_counter to accept lists of tensors (#137921) 2025-02-04 04:51:11 +00:00
test_case.py Migrate from Tuple -> tuple in torch/_dynamo (#144261) 2025-01-10 07:45:57 +00:00
test_minifier_common.py Add accuracy issue support in AOTI Minifier (#145539) 2025-01-24 23:07:19 +00:00
testing.py [dynamo] Log guard latency (#145132) 2025-01-25 03:01:18 +00:00
trace_rules.py Suport generators (#141055) 2025-02-08 22:42:12 +00:00
types.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
utils.py Fix get_top() to return the base level event of the stack, not the most recently started event (#146649) 2025-02-07 18:04:50 +00:00