
    /j
                    V    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	dS )    )annotationsN)Base)expectc                  >    e Zd Zedd            Zedd            ZdS )ConvIntegerreturnNonec                 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        l/home/longshao/multi-rider-rag/.venv/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                    t          j        g d                              t           j                                      d          } t          j        d          }t          j        ddgt           j                  }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   )dtype)r   r   r   r   r   r   r   r   )r   r   r   r   ) r   r   r   r   r   r   r   r      r   r      r   r6      r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   r   )r   r   r   w_zero_pointsr   r   )r    r!   padstest_convinteger_with_paddingr#   r%   )r   r   r8   r   r   convinteger_node_with_paddings         r0   export_with_paddingzConvInteger.export_with_padding&   sM    H11122VBHW\"" 	

 x{{!Qrx888H---..55bh??GGUU H! ! !# #H VBHW\""M 	
T )-(=(=>>>E	 )> )
 )
% 	)q,6C0		
 	
 	
 	
 	
 	
r2   N)r   r	   )__name__
__module____qualname__staticmethodr1   r<    r2   r0   r   r      sX        
 
 
 \
. @
 @
 @
 \@
 @
 @
r2   r   )

__future__r   numpyr&   r,   onnx.backend.test.case.baser   onnx.backend.test.case.noder   r   rA   r2   r0   <module>rF      s    # " " " " "      , , , , , , . . . . . .Z
 Z
 Z
 Z
 Z
$ Z
 Z
 Z
 Z
 Z
r2   