| 21 | @compatibility(is_backward_compatible=False) |
| 22 | @dataclass |
| 23 | class CaptureConfig: |
| 24 | pt2_mode: bool = True |
| 25 | enable_functionalization: bool = True |
| 26 | enable_dynamic_shape: bool = False # This flag does nothing if enable_aot is True |
| 27 | enable_aot: bool = ( |
| 28 | False # When it's true it implies automatic dynamic shapes via default dynamo config |
| 29 | ) |
| 30 | _dynamo_config: "ExirDynamoConfig" = field(default_factory=ExirDynamoConfig) |
| 31 | _unlift: bool = False # This flag does nothing if enable_aot is False. |
| 32 | _use_old_decomp_table: bool = False |
| 33 | |
| 34 | |
| 35 | @compatibility(is_backward_compatible=False) |