U
    ªÊ¹j 1  ã                   @   sÔ  d dl Z d dlZ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Zej dd¡dk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 d	Z!d	Z"d	Z#d	Z$d	Z%dZ&dZ'e(ƒ Z)e*ej dd¡ƒZ+ej dd¡dkZ,d	Z-dZ.ej dd¡Z/ej0ej1ej2ej3j0ej4ej5ej6ej7j8ej7j9ejj9ej:hZ;dddddhZ<ej dd¡Z=e>ej dd¡ƒZ?ej d¡dkZ@dZAd	ZBdZCdZDd	ZEd	ZFd	ZGd	ZHd	ZIdZJdZKd	ZLdZMdZNej d¡dkZOeeeeePƒƒƒƒZQej dd¡dkZRe>ej dd¡ƒZSd	ZTdZUdZVdZWdd „ ZXd!ZYeYejk�rBejZ [ejeY d"¡Z\n.eXƒ �r^ejZ [e ]¡ d"¡Z\nejZ [e ^¡ d"¡Z\d#d$d%d&hZ_d	Z`dZadZbdZcd'd(d)d*d+gZded ed,d-„ e  fejg¡D ƒ¡ dd.lhmiZi eiejjek ƒ dS )/é    N)ÚabspathÚdirnameé   )Úexternal_utilsZTORCHDYNAMO_VERBOSEÚ0Ú1FTé@   ZTORCHDYNAMO_SUPPRESS_ERRORSZTORCH_COMPILE_DEBUGZTORCH_COMPILE_DISABLEztorch.distributionsztorch.testingztorch._refsztorch._primsztorch._decompZTORCHDYNAMO_REPRO_AFTERZTORCHDYNAMO_REPRO_LEVELé   ZTORCHDYNAMO_REPRO_FORWARD_ONLYgü©ñÒMbP?Z!TORCHDYNAMO_REPORT_GUARD_FAILURESZ"TORCHDYNAMO_TRANSLATION_VALIDATIONZ*TORCHDYNAMO_TRANSLATION_VALIDATION_TIMEOUTZ600000Zfloat64Z
complex128Zint64c                   C   s   t tjdƒ S )NZgit_version)ÚhasattrÚtorchÚversion© r   r   úS/var/www/html/bwave/python/venv/lib/python3.8/site-packages/torch/_dynamo/config.pyÚ	is_fbcode  s    r   ZTORCH_COMPILE_DEBUG_DIRZtorch_compile_debugÚrepro_afterÚrepro_levelÚconstant_functionsÚ!skipfiles_inline_module_allowlistZstrideZrequires_gradZstorage_offsetZlayoutÚdatac                 C   s    g | ]\}}t  d |¡r|‘qS )z^is_.*)ÚreÚmatch)Ú.0ÚnameÚ_r   r   r   Ú
<listcomp>6  s      r   )Úinstall_config_module)lÚinspectÚosr   ÚsysÚtempfileÚos.pathr   r   r   Ú r   Zlog_file_nameÚenvironÚgetÚverboseZverify_correctnessZminimum_call_countZdead_code_eliminationZcache_size_limitZspecialize_intZjitZis_scriptingÚ
is_tracingZ_CZ_get_tracing_stateZfxZ_symbolic_traceZis_fx_tracingZonnxZis_in_onnx_exportZis_compilingZ_utilsr   Zdynamic_shapesZassume_static_by_defaultZautomatic_dynamic_shapesZforce_parameter_static_shapesZ&force_nn_module_property_static_shapesZallow_ignore_mark_dynamicZguard_nn_modulesÚsetZtraceable_tensor_subclassesÚboolZsuppress_errorsZreplay_record_enabledZ rewrite_assert_with_torch_assertZprint_specializationsÚdisableÚnnÚdistributionsZtestingZaoZ_refsZ_primsÚ_decompÚutilsZ_contextlibZ_pytreeÚsparser   Z*allowed_functions_module_string_ignorelistr   Úintr   Zrepro_forward_onlyZrepro_toleranceZsame_two_models_use_fp64Zcapture_scalar_outputsZ capture_dynamic_output_shape_opsZenforce_cond_guards_matchZoptimize_ddpZskip_fsdp_guardsZskip_nnmodule_hook_guardsZraise_on_ctx_manager_usageZraise_on_unsafe_aot_autogradZraise_on_backend_changeZerror_on_nested_fx_traceZ	allow_rnnZerror_on_recompileZreport_guard_failuresÚ__file__Úbase_dirZtranslation_validationZtranslation_validation_timeoutZtrace_numpyZnumpy_default_floatZnumpy_default_complexZnumpy_default_intr   ZDEBUG_DIR_VAR_NAMEÚpathÚjoinZdebug_dir_rootÚ
gettempdirÚgetcwdZ_save_config_ignoreZcapture_autograd_functionZcapture_func_transformsZ+inject_BUILD_SET_unimplemented_TESTING_ONLYZ/inject_EVALUATE_EXPR_flip_equality_TESTING_ONLYZ)_autograd_backward_strict_mode_banned_opsÚextendÚ
getmembersZTensorZconfig_utilsr   ÚmodulesÚ__name__r   r   r   r   Ú<module>   sæ   
       ùõû
ÿÿú	ûÿ