
    vhZ	                     H    d Z ddlmZ ddlmZ eddefd       Zed        Zy)	zeContext managers for toggling X64 mode.

**Experimental: please give feedback, and expect changes.**
    )contextmanager)confignew_valc              #   h   K   t        j                  |       5  d ddd       y# 1 sw Y   yxY ww)au  Experimental context manager to temporarily enable X64 mode.

  .. warning::

    This context manager remains experimental because it is fundamentally broken
    and can result in unexpected behavior, particularly when used in conjunction
    with JAX transformations like :func:`jax.jit`, :func:`jax.vmap`, :func:`jax.grad`,
    and others. See https://github.com/jax-ml/jax/issues/5982 for details.

  Usage::

    >>> x = np.arange(5, dtype='float64')
    >>> with enable_x64():
    ...   print(jnp.asarray(x).dtype)
    ...
    float64

  See Also
  --------
  jax.experimental.disable_x64 : temporarily disable X64 mode.
  Nr   
enable_x64)r   s    W/opt/face_recognition/venv/lib/python3.12/site-packages/jax/experimental/x64_context.pyr   r      s-     . ! 
	
 
 
   2&	2/2c               #   h   K   t        j                  d      5  d ddd       y# 1 sw Y   yxY ww)au  Experimental context manager to temporarily disable X64 mode.

  .. warning::

    This context manager remains experimental because it is fundamentally broken
    and can result in unexpected behavior, particularly when used in conjunction
    with JAX transformations like :func:`jax.jit`, :func:`jax.vmap`, :func:`jax.grad`,
    and others. See https://github.com/jax-ml/jax/issues/5982 for details.

  Usage::

    >>> x = np.arange(5, dtype='float64')
    >>> with disable_x64():
    ...   print(jnp.asarray(x).dtype)
    ...
    float32

  See Also
  --------
  jax.experimental.enable_x64 : temporarily enable X64 mode.
  FNr        r	   disable_x64r   7   s-     .  
	
 
 
r
   N)T)__doc__
contextlibr   jax._srcr   boolr   r   r   r   r	   <module>r      s?    & 
 
 
2 
 
r   