
    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                  B    e Zd Zedd       Zedd       Zedd       Zy)Addc                 p   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        | ||g||z   gd	
       y )Nr   xysuminputsoutputs         test_addr   r   name	onnxhelper	make_nodenprandomrandnastypefloat32r   noder	   r
   s      \/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/backend/test/case/node/add.pyexportz
Add.export   s    {{$$:G % 
 IIOOAq!$++BJJ7IIOOAq!$++BJJ7tQFQUG*E    c                 8   t         j                  j                  dddgdg      } t        j                  j                  ddt        j                        }t        j                  j                  ddt        j                        }t        | ||g||z   gd	
       y )Nr   r	   r
   r   r      )r   r   r   )sizedtypetest_add_uint8r   )r   r   r   r   r   randintuint8r   r   s      r    export_add_uint8zAdd.export_add_uint8   s    {{$$:G % 
 IIbyAIIbyAtQFQUG:JKr"   c                 l   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        | ||g||z   gd	
       y )Nr   r	   r
   r   r   r   r   r   test_add_bcastr   r   r   s      r    export_add_broadcastzAdd.export_add_broadcast&   s    {{$$:G % 
 IIOOAq!$++BJJ7IIOOA%%bjj1tQFQUG:JKr"   N)returnNone)__name__
__module____qualname__staticmethodr!   r*   r-    r"   r    r   r      sB    	F 	F 	L 	L 	L 	Lr"   r   )

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