U
    9%e 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Zdeded,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_ONLYgMbP?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/Darija-Ai-API/env/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_elimination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_compiling_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distributions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   
       
	