
    bIgu                    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)ConvIntegerc                 6   t        j                  g d      j                  t         j                        j	                  d      } t        j                  d      }t        j                  g d      j                  t         j                        j	                  d      }t        j                  g d      j                  t         j
                        j	                  dddd      }t        j                  j                  dg d	d
g      }t        || ||g|gd       y )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        d/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/backend/test/case/node/convinteger.pyexport_without_paddingz"ConvInteger.export_without_padding   s     HH12VBHHW\" 	

 xx{HH\"))"((3;;LIHH%&--bhh7??1aK  ;;00"<se 1 
 	q,'C3		
    c                 6   t        j                  g d      j                  t         j                        j	                  d      } t        j                  d      }t        j                  g d      j                  t         j                        j	                  d      }t        j                  g d      j                  t         j
                        j	                  d      }t        j                  j                  dg d	d
gg d      }t        || ||g|gd       y )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     HH12VBHHW\" 	

 xx{HH\"))"((3;;LI HHMNVBHHW\" 	
 )-(=(=-E	 )> )
% 	)q,'C0		
r2   N)returnNone)__name__
__module____qualname__staticmethodr1   r:    r2   r0   r   r      s(    
 
. 
 
r2   r   )

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