
    )`ik                     :    d dl Z d dlmZ e j        d             ZdS )    Nc                 l   |t           j        k    rd}d}nW|t           j        k    rd}d}nB|t           j        k    rd}d}n-|t           j        k    rd}d}nt          j        d	d
|            t          j        |                     t           j                  |z  ||                              |          S )zScales a value and clamps it to the range of the target dtype.

    This function hard-wires the upper/lower bounds in order to be
    compatible with both `torch.compile` and `triton.jit`.
    g      |g      |@g      g      @g     g     @g     g     GFzUnsupported dtype: )	tl
float8e4nvfloat8e5float16bfloat16static_assertclamptofloat32)xscaledtype	clamp_min	clamp_maxs        s/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/flashinfer/triton/kernels/quant.pyscale_and_clampr      s     				"+						"*						"+		*	)		
 =e = =>>>8ADD$$u,iCCFFuMMM    )tritontriton.languagelanguager   jitr    r   r   <module>r      sL           N N N N Nr   