a
    €þd  ã                   @   s  d dl Z d dlZd dlZd dlmZmZ d dlZddlmZ ddl	m
Z
mZ edd„ dd„ ƒZd	ZdZd	Zd	Zd	ZdZd
ZdZd
Zejjd	ejjd	ejjdejjjd	ejj d	ej!d
ej"j!d
iZ#e j$ %d¡dkZ&d	Z'e(ƒ Z)e*e j$ %dd	¡ƒZ+e*e j$ %dd	¡ƒZ,d
Z-d	Z.e j$ %dd	¡Z/ej0ej1ej2ej3j0ej4ej5ej6hZ7h d£Z8e j$ %dd¡Z9e:e j$ %dd¡ƒZ;e j$ %d¡dkZ<dZ=d	Z>d
Z?d
Z@d
ZAd	ZBd	ZCd
ZDd	ZEeeeeeFƒƒƒƒZGdd„ ZHeHƒ rÈe jI Je K¡ d¡ZLne jI Je  M¡ d¡ZLd	ZNh d£ZOddlPmQZQ eQejReS ƒ dS )é    N)ÚabspathÚdirnameé   )Úexternal_utils)Úget_loggers_levelÚset_loggers_levelc                 C   s   t ƒ S ©N)r   )Ú_© r
   ú]/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/torch/_dynamo/config.pyÚ<lambda>   ó    r   c                 C   s   t |ƒS r   )r   )r	   Zlvlr
   r
   r   r      r   FTé@   ZTORCHDYNAMO_DYNAMIC_SHAPESÚ1ZTORCHDYNAMO_SUPPRESS_ERRORSZTORCH_COMPILE_DEBUGZTORCH_COMPILE_DISABLE>   ztorch._decompztorch.distributionsztorch.testingztorch._primsztorch._refsZTORCHDYNAMO_REPRO_AFTERZTORCHDYNAMO_REPRO_LEVELé   ZTORCHDYNAMO_REPRO_FORWARD_ONLYgü©ñÒMbP?c                   C   s   t tjdƒ S )NZgit_version)ÚhasattrÚtorchÚversionr
   r
   r
   r   Ú	is_fbcode½   s    r   Ztorch_compile_debug>   Úrepro_afterÚconstant_functionsÚ!skipfiles_inline_module_allowlistÚrepro_level)Úinstall_config_module)TÚosÚsysÚtempfileÚos.pathr   r   r   Ú r   Úloggingr   r   ÚpropertyZ	log_levelZoutput_codeZlog_file_nameÚverboseZoutput_graph_codeZverify_correctnessZminimum_call_countZdead_code_eliminationÚcache_size_limitZspecialize_int_floatZjitZis_scriptingÚ
is_tracingZ_CZ_get_tracing_stateZfxZ_symbolic_traceZis_fx_tracingZonnxZis_in_onnx_exportZis_compilingÚ_utilsr   ÚenvironÚgetZdynamic_shapesZguard_nn_modulesÚsetZtraceable_tensor_subclassesÚboolZsuppress_errorsZreplay_record_enabledZ rewrite_assert_with_torch_assertZprint_graph_breaksÚdisableÚnnÚdistributionsZtestingZaoZ_refsZ_primsÚ_decompr   Z*allowed_functions_module_string_ignorelistr   Úintr   Zrepro_forward_onlyZrepro_toleranceZcapture_scalar_outputsZenforce_cond_guards_matchZoptimize_ddpZraise_on_ctx_manager_usageZraise_on_unsafe_aot_autogradZraise_on_backend_changeZerror_on_nested_fx_traceZ	allow_rnnÚ__file__Úbase_dirr   ÚpathÚjoinÚ
gettempdirZdebug_dir_rootÚgetcwdZ)DO_NOT_USE_legacy_non_fake_example_inputsZ_save_config_ignoreZconfig_utilsr   ÚmodulesÚ__name__r
   r
   r
   r   Ú<module>   s€   ÿ
ùù

