
    ϑi                    p    S SK Jr  S SKJr  S SKJr  S SKJr  \(       a  S SKJr   S         S	S jjr	g)
    )annotations)TYPE_CHECKING)_C_ops)in_dynamic_or_pir_mode)Tensorc                T    [        5       (       a  [        R                  " U UUU5      $ g)a  
Apply Fast LayerNorm kernel.

Args:
    x (Tensor): the input Tensor..
    scale (Tensor): the weight Tensor to affine output.
    bias (Tensor): the bias Tensor to affine output.
    epsilon (float): a small float number to avoid divide 0.

Returns:
    y: the Tensor after performing layernorm.
    mean: the mean of input tensor
    invvar: the invert variance(scaling factor) of y
N)r   r   fast_ln)xscalebiasepsilons       e/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/paddle/incubate/nn/functional/fast_ln.pyr	   r	      s/    ( ~~	
 	
      N)gh㈵>)
r
   r   r   r   r   r   r   floatreturnztuple[Tensor, Tensor, Tensor])

__future__r   typingr   paddler   paddle.frameworkr   r   r	    r   r   <module>r      sQ    #    3 	


 
 	

 #
r   