
    NgR                     J    d dl Zd dlZd dlmZ d dlmZ  G d de          ZdS )    N)Base)expectc                   >    e Zd Zedd            Zedd            ZdS )ConvIntegerreturnNc                  P   t          j        g d                              t           j                                      d          } t          j        d          }t          j        g d                              t           j                                      d          }t          j        g d                              t           j                                      dddd          }t          j                            dg d	d
g          }t          || ||g|gd           d S )N	                     	   
      r   r   r   r   r   r   r   r   r   r   r
   r
   )            r
   r   xwx_zero_pointy)inputsoutputs test_convinteger_without_paddingr    r!   name
nparrayastypeuint8reshapeint32onnxhelper	make_noder   )r   r   r   r   convinteger_nodes        c/var/www/html/ai-engine/env/lib/python3.11/site-packages/onnx/backend/test/case/node/convinteger.pyexport_without_paddingz"ConvInteger.export_without_padding   s    H11122VBHW\"" 	

 x{{H\\\""))"(33;;LIIH%%%&&--bh77??1aKK  ;00"<"<"<se 1 
 
 	q,'C3		
 	
 	
 	
 	
 	
    c                  P   t          j        g d                              t           j                                      d          } t          j        d          }t          j        g d                              t           j                                      d          }t          j        g d                              t           j                                      d          }t          j                            dg d	d
gg d          }t          || ||g|gd           d S )Nr	   r   r   r   r   )r   r   r   r   r   r   r   r      r   r      r   r5      r   )r   r   r   r   r   r   r   )r    r!   padstest_convinteger_with_paddingr#   r%   )r   r   r   r   convinteger_node_with_paddings        r0   export_with_paddingzConvInteger.export_with_padding%   s    H11122VBHW\"" 	

 x{{H\\\""))"(33;;LII HMMMNNVBHW\"" 	
 )-(=(=---E	 )> )
 )
% 	)q,'C0		
 	
 	
 	
 	
 	
r2   )r   N)__name__
__module____qualname__staticmethodr1   r:    r2   r0   r   r      sR        
 
 
 \
. 
 
 
 \
 
 
r2   r   )numpyr&   r,   onnx.backend.test.case.baser   onnx.backend.test.case.noder   r   r?   r2   r0   <module>rC      st   
      , , , , , , . . . . . .6
 6
 6
 6
 6
$ 6
 6
 6
 6
 6
r2   