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
polyfills [dynamo] Use polyfill to implement comparison operators (#144485) 2025-02-06 17:27:07 +00:00
repro
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
bytecode_analysis.py
bytecode_transformation.py
cache_size.py
callback.py
code_context.py
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
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
current_scope_id.py
debug_utils.py
decorators.py
device_interface.py
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
funcname_cache.py
graph_deduplication.py
graph_region_tracker.py
guards.py [dynamo] log recompile reason to dynamo_compile (#146117) 2025-02-03 21:04:04 +00:00
hooks.py
logging.py
metrics_context.py
mutation_guard.py
output_graph.py Raise MutationError if there are side effects when returning generator (#145223) 2025-02-08 22:42:12 +00:00
pgo.py
profiler.py
replay_record.py
resume_execution.py
side_effects.py Raise MutationError if there are side effects when returning generator (#145223) 2025-02-08 22:42:12 +00:00
source.py
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
test_minifier_common.py
testing.py
trace_rules.py Suport generators (#141055) 2025-02-08 22:42:12 +00:00
types.py
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