
    &Vf                        d dl Z d dlZd dlmZ dadadadZ eddg          d	             Z ed
dg          d             Z	 eddg          d             Z
 eddg          d             Z eddg          d             Z eddg          d             Zd Zdej        v rej                            d          ZnMej                            d          Z ej        eej                  sdZej                            ed          Zd Zej                            ej                            ed                    Zej                            e          r	  ee          5 Z e j        e          Zddd           n# 1 swxY w Y   n# e$ r i ZY nw xY we                    d  e                      Z e d!v sJ e                    d" e
                      Z! e"e!e#          sJ e                    d#e          Z$e                    d$ e                      Z%e%d%v sJ  e	e             ee!            ee%           e$Zej                            e          s	  ej&        e           n# e'$ r Y nw xY wej                            e          su e             e
            e e            d&Z	  eed'          5 Ze(                     e j)        ed()                     ddd           n# 1 swxY w Y   n# e*$ r Y nw xY wd*ej        v rej        d*         Z$e$re$Zedk    r
d+ej        d,<    ed-d.g          d/             Z+dS )0    N)keras_exportfloat32gHz>channels_last
tensorflowzkeras.config.floatxzkeras.backend.floatxc                      t           S )zReturn the default float type, as a string.

    E.g. `'bfloat16'`, `'float16'`, `'float32'`, `'float64'`.

    Returns:
        String, the current default float type.

    Example:

    >>> keras.config.floatx()
    'float32'

    )_FLOATX     U/var/www/html/software/conda/lib/python3.11/site-packages/keras/src/backend/config.pyfloatxr      s	     Nr
   zkeras.config.set_floatxzkeras.backend.set_floatxc                 ^    h d}| |vrt          d|  d|           t          |           adS )a  Set the default float dtype.

    Note: It is not recommended to set this to `"float16"` for training,
    as this will likely cause numeric stability issues.
    Instead, mixed precision, which leverages
    a mix of `float16` and `float32`. It can be configured by calling
    `keras.mixed_precision.set_dtype_policy('mixed_float16')`.

    Args:
        value: String; `'bfloat16'`, `'float16'`, `'float32'`, or `'float64'`.

    Examples:
    >>> keras.config.floatx()
    'float32'

    >>> keras.config.set_floatx('float64')
    >>> keras.config.floatx()
    'float64'

    >>> # Set it back to float32
    >>> keras.config.set_floatx('float32')

    Raises:
        ValueError: In case of invalid value.
    >   float16r   float64bfloat16zUnknown `floatx` value: z. Expected one of N)
ValueErrorstrr   )valueaccepted_dtypess     r   
set_floatxr   %   s\    8 DCCOO##1u 1 1.1 1
 
 	
 %jjGGGr
   zkeras.config.epsilonzkeras.backend.epsilonc                      t           S )zReturn the value of the fuzz factor used in numeric expressions.

    Returns:
        A float.

    Example:

    >>> keras.config.epsilon()
    1e-07

    _EPSILONr	   r
   r   epsilonr   J   s	     Or
   zkeras.config.set_epsilonzkeras.backend.set_epsilonc                 
    | a dS )aW  Set the value of the fuzz factor used in numeric expressions.

    Args:
        value: float. New value of epsilon.

    Examples:
    >>> keras.config.epsilon()
    1e-07

    >>> keras.config.set_epsilon(1e-5)
    >>> keras.config.epsilon()
    1e-05

    >>> # Set it back to the default value.
    >>> keras.config.set_epsilon(1e-7)

    Nr   )r   s    r   set_epsilonr   Z   s    ( HHHr
   zkeras.config.image_data_formatzkeras.backend.image_data_formatc                      t           S )zReturn the default image data format convention.

    Returns:
        A string, either `'channels_first'` or `'channels_last'`.

    Example:

    >>> keras.config.image_data_format()
    'channels_last'

    )_IMAGE_DATA_FORMATr	   r
   r   image_data_formatr   q   s
    $ r
   z"keras.config.set_image_data_formatz#keras.backend.set_image_data_formatc                 x    t          |                                           } | dvrt          d|            | adS )a  Set the value of the image data format convention.

    Args:
        data_format: string. `'channels_first'` or `'channels_last'`.

    Examples:

    >>> keras.config.image_data_format()
    'channels_last'

    >>> keras.config.set_image_data_format('channels_first')
    >>> keras.config.image_data_format()
    'channels_first'

    >>> # Set it back to `'channels_last'`
    >>> keras.config.set_image_data_format('channels_last')

       r   channels_firsteThe `data_format` argument must be one of {'channels_first', 'channels_last'}. Received: data_format=N)r   lowerr   r   data_formats    r   set_image_data_formatr&      s[    4 k""((**K===3%03 3
 
 	

 %r
   c                     | t                      S t          |                                           } | dvrt          d|            | S )Nr    r"   )r   r   r#   r   r$   s    r   standardize_data_formatr(      se     """k""((**K===3%03 3
 
 	

 r
   
KERAS_HOME~z/tmpz.kerasc                      t           S )N)
_KERAS_DIRr	   r
   r   
keras_homer-      s    r
   z
keras.jsonr   >   r   r   r   r   backendr   r    )r   r   r.   r   w   )indentKERAS_BACKENDtrueTF_FORCE_GPU_ALLOW_GROWTHzkeras.config.backendzkeras.backend.backendc                      t           S )a  Publicly accessible method for determining the current backend.

    Returns:
        String, the name of the backend Keras is currently using. One of
            `"tensorflow"`, `"torch"`, or `"jax"`.

    Example:

    >>> keras.config.backend()
    'tensorflow'

    )_BACKENDr	   r
   r   r.   r.     s	    & Or
   ),jsonoskeras.src.api_exportr   r   r   r   r6   r   r   r   r   r   r&   r(   environgetr,   path
expanduser_keras_base_diraccessW_OKjoinr-   _config_pathexistsopenfload_configr   _floatx_epsilon
isinstancefloat_backend_image_data_formatmakedirsOSErrorwritedumpsIOErrorr.   r	   r
   r   <module>rS      si    				 - - - - - -   %   $&<=>>  ?>" (*DEFF! ! GF!H %'>?@@  A@ )+FGHH  IH, ()    ,- % % %<
 
 
 2:--JJg((--O29_bg.. ! ox88J   w!!"',,z<"H"HII7>>, T, 	#1dillG	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	# 	#   kk(FFHH--G77777{{9ggii00H:h&&&&&{{9h//H %8:K:K:M:MNN!DDDDDJwK,---H 
w~~j!! J    	
 
w~~l## &((799..00	 GT,$$ 	3GGJDJwq111222	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3   
 bj  z/*H  | /5BJ*+      s~    F +F<F FF FF FF)I: :JJ?L	 &K=1L	 =LL	 LL	 	LL