
    9i
                        S SK Jr  S SKJr  S SKJs  Jr  SSKJ	r	J
r
  S SKJr  SSKJr  \" S	5      rS
\\   S\	\   4S jr\" \R$                  5      r\" \R&                  5      r\" \R(                  5      r\" \R*                  5      r\" \R,                  5      r\" \R.                  5      r\
SS j5       r\
SS j5       r\
SS j5       rg)    )TypeVar)JITFunctionN   )GluonJITFunctionjit)knobs   )_coreTfnreturnc                     [         R                  R                  (       d  [        U [        5      (       d   e[        U R                  5      nU R                  Ul        U$ N)r   runtime	interpret
isinstancer   r   r   __doc__)r   gluon_fns     l/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/triton/experimental/gluon/language/_standard.py_import_from_tritonr      s?    ==""j[&A&AAA255zHzzHO    c                 2    [         R                  " U SX5      $ )a6  
Create a tensor filled with zeros.

Args:
    shape (Sequence[int]): The shape of the tensor.
    dtype (dtype): The data type for the tensor.
    layout (Optional[DistributedLayout]): The distributed layout of the tensor, defaults to AutoLayout().

Returns:
    tensor: A tensor where every element is zero.
r   )ttglfullshapedtypelayouts      r   zerosr      s     99UAu--r   c                     [         R                  " Uc  U R                  OUUUc  U R                  OUUc  U R                  R
                  5      $ U5      $ )a  
Create a tensor with the same properties as a given tensor, filled with a specified value.

Args:
    input (tensor): Reference tensor to infer default shape, dtype, and layout.
    value (int or float): The fill value.
    shape (Sequence[int], optional): Target shape. Defaults to input.shape.
    dtype (dtype, optional): Target data type. Defaults to input.dtype.
    layout (DistributedLayout, optional): Target layout. Defaults to input.layout.

Returns:
    tensor: A tensor where every element equals value.
)r   r   r   r   typer   )inputvaluer   r   r   s        r   	full_liker$   +   sR     99}%}%#^

	  28	 r   c                     [        U SXUS9$ )a  
Create a tensor with the same properties as a given tensor, filled with zeros.

Args:
    input (tensor): Reference tensor to infer default shape, dtype, and layout.
    shape (Sequence[int], optional): Target shape. Defaults to input.shape.
    dtype (dtype, optional): Target data type. Defaults to input.dtype.
    layout (DistributedLayout, optional): Target layout. Defaults to input.layout.

Returns:
    tensor: A tensor where every element is zero.
r   r   )r$   )r"   r   r   r   s       r   
zeros_liker&   B   s     UAUGGr   r   )NNN)typingr   triton.runtime.jitr   triton.language.standardlanguagestandardtl_standard_runtimer   r   tritonr    r
   r   r   r   cdivsummaxmin	reduce_orxor_sumr   r$   r&    r   r   <module>r7      s     * . . ,  CLKN /?/B  ;++,+//*+//*+//* 5 56	
k11
2 . .  , H Hr   