
    SiA	                    N    S SK Jr  S SKrS SKrS SKJr  S SKJr   " S S\5      r	g)    )annotationsN)Base)expectc                  P    \ rS rSr\SS j5       r\SS j5       r\SS j5       rSrg)Identity   c                     [         R                  R                  SS/S/S9n [        R                  " SS/SS////[        R
                  S	9n[        X/U/S
S9  g )Nr   xyinputsoutputs            dtypetest_identityr   r   nameonnxhelper	make_nodenparrayfloat32r   nodedatas     c/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/onnx/backend/test/case/node/identity.pyexportIdentity.export   sr    {{$$5E % 
 xx AA **

 	tFTFI    c                    [         R                  R                  SS/S/S9n [        R                  " SS/SS////[        R
                  S	9[        R                  " SS/SS
////[        R
                  S	9/n[        X/U/SS9  g )Nr   r
   r   r   r   r   r   r   r      test_identity_sequencer   r   r   s     r"   export_sequenceIdentity.export_sequence$   s    {{$$5E % 
 HH FF jj
 HH FF jj

2 	tFTF9QRr%   c            
         [         R                  R                  [         R                  R                  S/S9n [         R                  R                  U 5      n[         R                  R                  U5      n[         R                  R                  SS/S/S9n[        R                  " / SQ5      R                  [        R                  5      /n[        UU/U/S[         R                  R                  S	S
5      /U/U/S9  g )Nr'   )shaper   opt_inopt_outr   )r   r   r   r   r'   test_identity_opt    )r   r   r   opset_importsinput_type_protosoutput_type_protos)r   r   make_tensor_type_protoTensorProtoFLOATmake_sequence_type_protomake_optional_type_protor   r   r   astyper   r   make_opsetid)	ten_in_tp	seq_in_tp	opt_in_tpidentity_noder
   s        r"   export_identity_optIdentity.export_identity_optG   s    KK66""1# 7 
	 KK88C	KK88C	--zI; . 
 XXo&--bjj9:3C$;;33B;<(k ){	
r%    N)returnNone)	__name__
__module____qualname____firstlineno__staticmethodr#   r)   r@   __static_attributes__rB   r%   r"   r   r      sA    J J*  S  SD 
 
r%   r   )

__future__r   numpyr   r   onnx.backend.test.case.baser   onnx.backend.test.case.noder   r   rB   r%   r"   <module>rO      s$    #   , .P
t P
r%   