
    bIg                    N    d dl mZ d dlZd dlZd dlmZ d dlmZ  G d de      Z	y)    )annotationsN)Base)expectc                  0    e Zd Zedd       Zedd       Zy)PReluc                    t         j                  j                  dddgdg      } t        j                  j                  ddd      j                  t        j                        }t        j                  j                  ddd      j                  t        j                        }t        j                  |d	t        j                        t        j                  |t        j                   d	      |z  z   }t        | ||g|gd
       y )Nr   xslopeyinputsoutputs         r   test_prelu_exampler   r   nameonnxhelper	make_nodenprandomrandnastypefloat32clipinfr   noder	   r
   r   s       ^/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/backend/test/case/node/prelu.pyexportzPRelu.export   s    {{$$>E % 
 IIOOAq!$++BJJ7		1a(//

;GGAq"&&!BGGAw$:U$BBtQJ:NO    c                    t         j                  j                  dddgdg      } t        j                  j                  ddd      j                  t        j                        }t        j                  j                  d      j                  t        j                        }t        j                  |d	t        j                        t        j                  |t        j                   d	      |z  z   }t        | ||g|gd
       y )Nr   r	   r
   r   r   r   r   r   r   test_prelu_broadcastr   r   r    s       r"   export_prelu_broadcastzPRelu.export_prelu_broadcast   s    {{$$>E % 
 IIOOAq!$++BJJ7		"))"**5GGAq"&&!BGGAw$:U$BBtQJ:PQr$   N)returnNone)__name__
__module____qualname__staticmethodr#   r'    r$   r"   r   r      s,    P P R Rr$   r   )

__future__r   numpyr   r   onnx.backend.test.case.baser   onnx.backend.test.case.noder   r   r.   r$   r"   <module>r3      s$    #   , .RD Rr$   