+
    –°³j{¡  ã            	       óš  a € RH t»0 t R t^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
Ht ^ RIHtHtHt ^ RIHt ^ RIHtHtHt Rt] ^ k ]P.                  P1                  RR4      R	8H  tR
t]P.                  P1                  RR4      t] ^k ]P.                  P1                  RR4      t] ^k ]P.                  P1                  RR4      t] ^k R
tR
t^t Rt!Rt"R
t#Rt$^t%Rt&]! RRRR7      t'] ^k R
t(]! RR7      t)] ^k ]! RR7      t*] ^k ]! RRRR7      t+] ^k ]! RR7      t,] ^k R
t-R
t.^@t/Rt0]P.                  P1                  RR	4      R	8H  t1Rt2Rt3]P.                  P1                  RR	4      R	8H  t4Rt5] ^	k R
t6R
t7Rt8Rt9R
t:Rt;Rt<]P.                  P1                  RR4      R	8H  t=]>! 4       t?] ^
k ]>! 4       t@] ^k ]A! ]P.                  P1                  RR
4      4      tB]P.                  P1                  RR4      R	8H  tCRtD]P.                  P1                  R R4      R	8H  tE]P.                  P1                  R!R
4      tF]P.                  P1                  R"R
4      tG] ^k / tH] ^k  0 RImtI]P.                  P1                  R#R4      tJ]K! ]P.                  P1                  R$^4      4      tL]P.                  P1                  R%4      R	8H  tMR&tN]P.                  P1                  R'4      R	8H  tORtP]P.                  P1                  R(4      R	8H  tQ]P.                  P1                  R)R4      R	8H  tRR
tSR
tTR
tURtV] ^k ]P.                  P1                  R*R4      R	8H  tW] ^k RtXR
tYR
tZR
t[Rt\Rt]Rt^Rt_R
t`RtaR
tbRtcRtdR
teRtfRtgR
thR
tiRtjR
tkRtl]! ]! ]! ]
! ]m4      4      4      4      tnRtoR
tpR+tqR,trR-tsR
ttRtuR
tvRtwR
txR
ty]! RRR.R7      tz]! RR/RR0R17      t{R
t|] ^k R
t}R
t~RtRt€R
t�R
t‚R
tƒRt„R
t…R
t†R
t‡R
tˆR
t‰R2 R3 ltŠ]Š! 4       t‹0 RJmtŒR
t�R
tŽR
t�Rt�Rt‘R
t’] ^k Rt“]>! 4       t”] ^k ]>! 4       t•] ^k ]! R4R7      t–] ^k R
t—. RKOt˜. RLOt™]P.                  P1                  R5R	4      R	8H  tš]P.                  P1                  R6R4      R	8H  t›Rtœ]P.                  P1                  R7R4      R	8H  t�]P.                  P1                  R8R4      R	8H  tžR
tŸRt Rt¡Rt¢R
t£/ t¤] ^k  ]P.                  P1                  R9R4      R	8H  t¥]P.                  P1                  R:R4      R	8H  t¦]! R;R<RR=7      t§] ^k ]! R>4      t¨] ^k ]P.                  P1                  R?R4      R	8H  t©]P.                  P1                  R@R4      tª] ^k ]! ]EPV                  ! RA4      ^8g  RBRCRD7      t¬R
t­R
t®Rt¯Rt°Rt±] ^k R
t²] ^k R
t³] ^k Rt´] ^k Rtµ] ^k R
t¶] ^k ]'       d   ^ REI·5 RF RG lt¸]! ]EPr                  ]º,          4       R# )Mar  
Configuration module for TorchDynamo compiler and optimization settings.

This module contains various configuration flags and settings that control TorchDynamo's
behavior, including:

- Runtime behavior flags (e.g., guard settings, specialization options)
- Debugging and development options
- Performance tuning parameters
- Feature toggles for experimental features
N)ÚCallable)ÚabspathÚdirname)ÚAnyÚLiteralÚTYPE_CHECKING)Ú	is_fbcode)ÚConfigÚget_tristate_envÚinstall_config_moduleÚTORCHDYNAMO_VERBOSEÚ0Ú1FÚTORCH_COMPILE_OVERRIDE_BACKENDSÚ Ú'TORCH_COMPILE_OVERRIDE_INDUCTOR_CONFIGSÚ%TORCH_COMPILE_OVERRIDE_DYNAMO_CONFIGSTÚinfoé   zdoes not do anything)ÚdefaultÚ
deprecatedÚdeprecation_messagez$torch._dynamo.config.recompile_limit)Úaliasz0torch._dynamo.config.accumulated_recompile_limitz?torch._dynamo.config.skip_code_recursive_on_recompile_limit_hit)r   r   r   z0torch._dynamo.config.fail_on_recompile_limit_hitÚ#TORCH_COMPILE_USE_LAZY_GRAPH_MODULEÚ%TORCH_DYNAMO_AUTOMATIC_DYNAMIC_SHAPESÚdynamicÚTORCHDYNAMO_PREPARE_FREEZINGÚTORCHDYNAMO_SUPPRESS_ERRORSÚTORCH_COMPILE_REPLAY_RECORDÚTORCH_COMPILE_DISABLEÚTORCH_COMPILE_CPROFILEÚTORCH_COMPILE_DYNAMO_PROFILERÚTORCHDYNAMO_REPRO_AFTERÚTORCHDYNAMO_REPRO_LEVELÚTORCHDYNAMO_REPRO_FORWARD_ONLYgü©ñÒMbP?ÚTORCHDYNAMO_REPRO_IGNORE_NON_FPÚ"TORCHDYNAMO_CAPTURE_SCALAR_OUTPUTSÚ,TORCHDYNAMO_CAPTURE_DYNAMIC_OUTPUT_SHAPE_OPSÚ(TORCH_DYNAMO_DO_NOT_EMIT_RUNTIME_ASSERTSÚfloat64Ú
complex128Úint64z9does not do anything, generators are always traced lazilyz*pytorch/compiler:inline_inbuilt_nn_modulesz>does not do anything, inline_inbuilt_nn_modules is always True)r   Újustknobr   r   c                ó$   € V ^8„  d   QhR\         /# )é   Úreturn)Ústr)Úformats   "ÚU/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torch/_dynamo/config.pyÚ__annotate__r3   †  s   € ÷ 
@ñ 
@¤ñ 
@ó    c                  ó®  € R p V \         P                  9   d6   \         P                  P                  \         P                  V ,          R4      # \	        4       '       dH   \         P                  P                  \
        P                  ! 4       \        P                  ! 4       R4      # \         P                  P                  \         P                  ! 4       R4      # )ÚTORCH_COMPILE_DEBUG_DIRÚtorch_compile_debug)
ÚosÚenvironÚpathÚjoinr   ÚtempfileÚ
gettempdirÚgetpassÚgetuserÚgetcwd)ÚDEBUG_DIR_VAR_NAMEs    r2   Údefault_debug_dir_rootrB   †  s†   € à2ÐØœRŸZ™ZÔ'Ü�w‰w�|‰|œBŸJ™JÐ'9Õ:Ð<QÓRÐRÜ	�ŠÜ�w‰w�|‰|Ü×ÒÓ!¤7§?¢?Ó#4Ð6Kó
ð 	
ô �w‰w�|‰|œBŸIšI›KÐ)>Ó?Ð?r4   z-torch._dynamo.config.ignore_logging_functionsÚ TORCH_FAKE_TENSOR_DISPATCH_CACHEÚ+TORCH_FAKE_TENSOR_DISPATCH_CACHE_CROSSCHECKÚTORCH_CACHING_PRECOMPILEÚTORCH_STRICT_PRECOMPILEÚTORCH_COMPILER_COLLECTIVESÚ"TORCHDYNAMO_ENABLE_P2P_COMPILATIONz7pytorch/remote_cache:enable_local_automatic_dynamic_pgoÚ(TORCH_DYNAMO_AUTOMATIC_DYNAMIC_LOCAL_PGO)r,   Úenv_name_forcer   Ú)TORCH_DYNAMO_AUTOMATIC_DYNAMIC_REMOTE_PGOÚUNSAFE_SKIP_FSDP_MODULE_GUARDSÚPT2_COMPILE_ID_PREFIXÚPy_GIL_DISABLEDz,pytorch/compiler:enable_run_gc_after_compileÚ!TORCH_DYNAMO_RUN_GC_AFTER_COMPILE)r   r,   Úenv_name_default)Ú*c                ó0   € V ^8„  d   QhR\         R\         /# )r.   Úchangesr/   )r   )r1   s   "r2   r3   r3   «  s   € ×9Ñ9¬Ð9´Ñ9r4   c                  ó   € R # )N© )rS   s   ,r2   Ú_make_closure_patcherrV   «  s   € ±cr4   c                ó¬  € V ^8„  d   Qh/ ^ \         9   d   \        R,          ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R	&   ^\         9   d
   \        ;R
&   ^	\         9   d   \        R",          ;R&   ^
\         9   d    \
        \        \        ,          ,          ;R&   ^\         9   d    \
        \        \        ,          ,          ;R&   ^\         9   d   \        \        ,          ;R&   ^\         9   d   \        \        \        3,          ;R&   ^\         9   d   \        \        R#,          ,          ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d#   \
        \        \        .R3,          ,          ;R&   ^\         9   d"   \
        \        R\        3,          ,          ;R&   ^\         9   d"   \
        \        R\        3,          ,          ;R&   ^\         9   d   \        \        \        3,          ;R&   ^\         9   d
   \        ;R&   ^\         9   d   \        R,          ;R&   ^\         9   d   \        R,          ;R&   ^\         9   d   \        R,          ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d
   \        ;R&   ^\         9   d   \        R,          ;R &   ^\         9   d
   \        ;R!&   # )$r.   NÚlog_file_nameÚdebug_backend_overrideÚdebug_inductor_config_overrideÚdebug_dynamo_config_overrideÚ*skip_code_recursive_on_recompile_limit_hitÚcache_size_limitÚaccumulated_cache_size_limitÚ&skip_code_recursive_on_cache_limit_hitÚfail_on_cache_limit_hitÚ automatic_dynamic_shapes_mark_asÚtraceable_tensor_subclassesÚnontraceable_tensor_subclassesÚdynamo_profilerÚ!skipfiles_inline_module_allowlistÚoptimize_ddpÚdo_not_emit_runtime_assertsÚnested_graph_breaksÚ capture_profiler_record_functionÚreorderable_logging_functions.Úignore_logging_functionsÚignore_logger_methodsÚ!compiled_autograd_kwargs_overrideÚautomatic_dynamic_local_pgoÚautomatic_dynamic_remote_pgoÚpt2_compile_id_prefixÚ_custom_ops_profileÚ'enable_invoke_subgraph_regional_compileÚinline_invoke_subgraphÚ!inline_single_use_invoke_subgraphÚ#invalidate_compile_context_weakrefsÚ$canonicalize_output_graph_node_order)r   Úunbacked)Úddp_optimizerÚpython_reducerÚ'python_reducer_without_compiled_forwardÚno_optimization)
Ú__conditional_annotations__r0   ÚboolÚintr   ÚsetÚtyper   Údictr   )r1   s   "r2   r3   r3      s'  € ÷ 
ñ 
÷B !Ò  Œs�T�zÑ  ñC
÷f TÒ SœÑ Sñg
÷xò ¤ñ ñy
÷Nò œcñ ñO
÷zò ¬Dñ ñ{
÷P MÒ L”#Ñ LñQ
÷Rò œcñ ñS
÷Zò ¬ñ ñ[
÷fò œñ ñg
÷@ MÒ L¤'Ð*?Õ"@Ñ LñA
÷J 4Ò 3œS¤¤c¥�^Ñ 3ñK
÷X 7Ò 6¤¤D¬¥I¥Ñ 6ñY
÷N	 UÒ T”œ•Ñ TñO	
÷T	 7Ò 6¤4¬¬S¨¥>Ñ 6ñU	
÷L	ò 	ÜÜð	õõñ	ñM
÷jò œTñ ñk
÷T "Ò !”TÑ !ñU
÷n /Ò .¤$Ñ .ño
÷@ BÒ Aœs¤8¬S¨E°4¨KÕ#8Õ9Ñ AñA
÷V :Ò 9œ#œh s¬C xÕ0Õ1Ñ 9ñW
÷^ò ”sœ8 C¬ HÕ-Õ.ñ ñ_
÷F 7Ò 6¤4¬¬S¨¥>Ñ 6ñG
÷zò œTñ ñ{
÷Hò œd T�kñ ñI
÷\ RÒ Q”s˜T•zÑ Qñ]
÷R 'Ò &”S˜4•ZÑ &ñS
÷Z 6Ò 5¬Ñ 5ñ[
÷f %Ò $œÑ $ñg
÷n /Ò .¤4Ñ .ño
÷@ 8Ò 7¤T¨D¥[Ñ 7ñA
÷J 3Ò 2¤dÑ 2òK
r4   >   útorch._refsútorch._primsútorch._decompútorch.testingútorch.distributions>   Úrepro_afterÚrepro_levelÚconstant_functionsre   )ÚlayoutÚis_negÚis_conjÚ	is_pinned)ÚstrideÚstorage_offsetÚis_contiguous)¼r|   Ú__doc__r>   r8   ÚsysÚ	sysconfigr<   Úcollections.abcr   Úos.pathr   r   Útypingr   r   r   Útorch._environmentr   Útorch.utils._config_moduler	   r
   r   rX   r9   ÚgetÚverboseÚverify_correctnessrY   rZ   r[   Úleaf_function_validate_outputsÚ%leaf_function_check_escaped_gradientsÚminimum_call_countÚdead_code_eliminationÚreplay_side_effectsÚgenerate_pycodeÚside_effect_replay_policyÚrecompile_limitÚaccumulated_recompile_limitr\   Úfail_on_recompile_limit_hitr]   r^   r_   r`   Úspecialize_intÚspecialize_floatÚ computed_lazy_constant_max_nodesÚdynamic_shapesÚuse_lazy_graph_moduleÚassume_static_by_defaultÚ_dynamic_shapes_specÚautomatic_dynamic_shapesra   Ú!automatic_dynamic_exclusion_guardÚlog_graph_in_out_metadataÚforce_parameter_static_shapesÚ&force_nn_module_property_static_shapesÚallow_ignore_mark_dynamicÚguard_nn_modulesÚ guard_nn_modules_using_dict_tagsÚprepare_freezingr   rb   rc   r}   Úsuppress_errorsÚreplay_record_enabledÚ rewrite_assert_with_torch_assertÚdisableÚcprofilerd   re   Ú*allowed_functions_module_string_ignorelistr‡   r~   rˆ   Úrepro_forward_onlyÚrepro_toleranceÚrepro_ignore_non_fpÚsame_two_models_use_fp64Úcapture_scalar_outputsÚ capture_dynamic_output_shape_opsÚ+prefer_deferred_runtime_asserts_over_guardsÚ3force_unspec_int_unbacked_size_like_on_torchrec_kjtÚallow_unspec_int_on_nn_modulerf   rg   Úskip_torchrecÚdont_skip_tracingÚoptimize_ddp_lazy_compileÚ#use_lamba_guard_for_object_aliasingÚskip_fsdp_guardsÚskip_nnmodule_hook_guardsÚ,skip_no_tensor_aliasing_guards_on_parametersÚ*skip_tensor_guards_with_matching_dict_tagsÚ%skip_guards_on_constant_func_defaultsÚ)assume_dunder_attributes_remain_unchangedÚ"use_recursive_dict_tags_for_guardsÚ0max_saved_pointers_for_recursive_dict_tags_checkÚraise_on_ctx_manager_usageÚraise_on_unsafe_aot_autogradÚerror_on_nested_jit_traceÚerror_on_nested_fx_traceÚforce_compile_during_fx_traceÚ	allow_rnnÚcapture_sparse_computeÚerror_on_recompileÚreport_guard_failuresÚ__file__Úbase_dirÚtrace_numpyÚtrace_autograd_opsÚnumpy_default_floatÚnumpy_default_complexÚnumpy_default_intÚuse_numpy_random_streamÚenable_cpp_guard_managerÚ enable_cpp_symbolic_shape_guardsÚenable_trace_contextlibÚenable_trace_unittestÚenable_trace_load_build_classÚ"enable_faithful_generator_behaviorÚinline_inbuilt_nn_modulesrh   Ú3error_on_dynamo_callback_in_fullgraph_compiled_codeÚinstall_free_tensorsÚinstall_free_tensors_for_exportÚ!enable_cpp_framelocals_guard_evalÚuse_graph_deduplicationÚtrack_nodes_for_deduplicationÚgraph_deduplication_lintÚissue_3_13_0_warningÚallow_empty_graphsÚdebug_force_nested_callsÚ&debug_force_graph_break_on_leaf_returnÚdebug_disable_compile_counterÚ%record_compile_time_instruction_countrB   Údebug_dir_rootÚ_save_config_ignoreÚ%cudagraph_backend_keep_input_mutationÚ(cudagraph_backend_support_input_mutationÚonly_allow_pt2_compliant_opsÚcapture_autograd_functionÚcapture_func_transformsri   Úlog_compilation_metricsrj   rk   rl   Ú+inject_BUILD_SET_unimplemented_TESTING_ONLYÚ)_autograd_backward_strict_mode_banned_opsÚ5_autograd_backward_strict_mode_conditional_banned_opsÚfake_tensor_cache_enabledÚ$fake_tensor_cache_crosscheck_enabledÚ"fake_tensor_disable_inference_modeÚcaching_precompileÚstrict_precompileÚcompiled_autogradÚenable_dynamo_decompositionsÚgraph_break_on_nn_param_ctorÚ#inline_torch_dispatch_torch_compileÚ-skip_fwd_side_effects_in_bwd_under_checkpointrm   Úenable_compiler_collectivesÚenable_p2p_compilationrn   ro   Ú_unsafe_skip_fsdp_module_guardsrp   Úget_config_varÚrun_gc_after_compileÚ'constant_fold_autograd_profiler_enabledÚwrap_top_frameÚrecord_runtime_overheadÚenable_aot_compilerq   rr   rs   rt   ru   rv   Útorch.utils._config_typingrV   ÚmodulesÚ__name__r3   )r|   s   @r2   Ú<module>r     sM  øðö
ó Û 	Û 
Û Û Ý $ß $ß .Ñ .å (ß VÑ Vð !€Ó  ð �*‰*�.‰.Ð.°Ó
4¸Ñ
;€ð Ð ð !Ÿj™jŸn™nÐ-NÐPRÓSÐ Ó Sð ')§j¡j§n¡nØ-¨ró'Ð ó ð %'§J¡J§N¡NØ+¨Ró%Ð ó ð "'Ð ð ).Ð %ð Ð ð Ð ð Ð ð
 €ð #Ð ð €ð "Ð á39Ø˜TÐ7Mô4Ð *ó ð $Ð áÐ%KÔLÐ Ó LÙ$*Ø
<ô%Ð ó ñ 06Ø
KØØ.ô0Ð &ó ñ !'Ø
<ô!Ð ó ð €ð
 Ð ð $&Ð  ð €ð ‡J�J‡N�NÐ8¸#Ó>À#ÑEð ð  Ð ð Ð ð ‡J�J‡N�NÐ:¸CÓ@ÀCÑGð ð
 DMÐ  Ó Lð( %*Ð !ð "Ð ð !%Ð ð
 *.Ð &ð "Ð ð Ð ð $(Ð  ð
 —:‘:—>‘>Ð"@À#ÓFÈ#ÑMÐ ñ /2«eÐ Ó 3ñ 25³Ð Ó 6ñ �r—z‘z—~‘~Ð&CÀUÓKÓL€ð
 Ÿ
™
Ÿ™Ð'DÀcÓJÈcÑQÐ ð $(Ð  ð �*‰*�.‰.Ð0°#Ó
6¸#Ñ
=€ð �:‰:�>‰>Ð2°EÓ:€ð !Ÿj™jŸn™nÐ-LÈeÓT€Ó Tð 57Ð !Ó 6ðò&.Ð *ð �j‰j�n‰nÐ6¸Ó=€ñ �"—*‘*—.‘.Ð!:¸AÓ>Ó?€ð —Z‘Z—^‘^Ð$DÓEÈÑLÐ ð
 €ð —j‘j—n‘nÐ%FÓGÈ3ÑNÐ ð  Ð ð
 Ÿ™Ÿ™Ð(LÓMÐQTÑTÐ ð ‡J�J‡N�NÐAÀ3ÓGÈ3ÑNð !ð
 /4Ð +ð 7<Ð 3ð !&Ð ð4 	ð ó 	ð  ‡J�J‡N�NÐ=¸sÓCÀsÑJð ó ð
 €ð Ð ð "Ð ð ',Ð #ð Ð ð
 !Ð ð 04Ð ,ð .2Ð *ð ).Ð %ð& -1Ð )ð &+Ð "ð 47Ð 0ð "Ð ð  %Ð ð !Ð ð  Ð ð
 !&Ð ð €	ð Ð ð
 Ð ð Ð ñ ‘7™7¡7¨8Ó#4Ó5Ó6Ó7€ð €ð Ð ð  Ð Ø$Ð ØÐ ð  Ð ð  Ð ð $)Ð  ð Ð ð Ð ð !&Ð á%+ØØØSô&Ð "ñ #ØØ9ØØXô	Ð ð "Ð Ó !ð 7<Ð 3ð
 Ð ð #'Ð ð %)Ð !ð  Ð ð !&Ð ð !Ð ð
 Ð ð Ð ð !Ð ð */Ð &ð
 !&Ð ð ).Ð %õ
@ñ (Ó)€òÐ ð ).Ð %ð ,1Ð (ð  %Ð ð !Ð ð Ð ð */Ð  Ó .ð Ð ñ =@»EÐ Ó Añ 58³EÐ Ó 9ñ 28Ø
9ô2Ð ó ð /4Ð +ò-Ð )ò9Ð 5ð ‡J�J‡N�NÐ5°sÓ;¸sÑBð ð ‡J�J‡N�NÐ@À#ÓFÈ#ÑMð %ð &*Ð "ð —Z‘Z—^‘^Ð$>ÀÓDÈÑKÐ à—J‘J—N‘NÐ#<¸cÓBÀcÑIÐ ð Ð ð  $Ð ð  $Ð ð '+Ð #ð 16Ð -ð 57Ð !Ó 6ðð: !Ÿj™jŸn™nÐ-IÈ3ÓOÐSVÑVÐ ð ‡J�J‡N�NÐ7¸Ó=ÀÑDð ñ2 %+ØFØ=Øô%Ð ó ñ -=Ø/ó-Ð ó ð ‡J�J‡N�NÐ3°SÓ9¸SÑ@ð  ð
 %'§J¡J§N¡NÐ3JÈDÓ$QÐ Ó Qñ à×$Ó$Ð%6Ó7¸1Ñ<Ø;Ø8ô	Ð ð +0Ð 'ð €ð Ð ð Ð ð #'Ð Ó &ð 16Ð 'Ó 5ð  %Ð Ó $ð +/Ð !Ó .ð 48Ð #Ó 7ð
 .3Ð $Ó 2çÜ,å9ñ �c—k’k (Õ+Ö ,r4   