a
    yn„ft  ã                   @  sH   d dl mZ d dlmZ d dlmZ dZeƒ dd„ ƒZddœd	d
„ZdS )é    )Úannotations)Ú
backend_of)Úhigh_level_function)Úbackendc                  g  s   | V  t | ƒS )aq  
    Args:
        arrays: Array-like data (anything #ak.to_layout recognizes).

    Returns the name of the backend used by `arrays`. This name may be

    * `"cpu"` for arrays backed by NumPy;
    * `"cuda"` for arrays backed by CuPy;
    * `"jax"` for arrays backed by JAX;
    * `"typetracer"` for arrays without any data;
    * None if the objects are not Awkward, NumPy, JAX, CuPy, or typetracer arrays (e.g.
      Python numbers, booleans, strings).

    If there are multiple, compatible backends (e.g. NumPy & typetracer) amongst the given arrays, the
    coercible backend is returned.

    See #ak.to_backend.
    )Ú_impl)Úarrays© r   ú`/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/awkward/operations/ak_backend.pyr      s    r   Ústr)Úreturnc                 C  s   t | d ddœŽ}|jS )NT)ÚdefaultZcoerce_to_common)r   Úname)r   Zbackend_implr   r   r	   r   &   s    r   N)	Ú
__future__r   Zawkward._backends.dispatchr   Zawkward._dispatchr   Ú__all__r   r   r   r   r   r	   Ú<module>   s   
