
    Si                    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                  <    \ rS rSr\SS j5       r\SS j5       rSrg)GlobalMaxPool   c                 X   [         R                  R                  SS/S/S9n [        R                  R                  SSSS5      R                  [        R                  5      n[        R                  " U[        [        S[        R                  " U5      5      5      S	S
9n[        X/U/SS9  g )Nr   xyinputsoutputs            T)axiskeepdimstest_globalmaxpoolr   r   name)onnxhelper	make_nodenprandomrandnastypefloat32maxtuplerangendimr   noder
   r   s      h/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/onnx/backend/test/case/node/globalmaxpool.pyexportGlobalMaxPool.export   s    {{$$5E % 

 IIOOAq!Q'..rzz:FF15q"''!*!56FtC!3GH    c                 J   [         R                  R                  SS/S/S9n [        R                  " / SQ/ SQ/ SQ///5      R                  [        R                  5      n[        R                  " S////5      R                  [        R                  5      n[        X/U/S	S
9  g )Nr   r
   r   r   )r   r   r   )   r      )      	   r/   test_globalmaxpool_precomputedr   )r   r   r   r   arrayr   r   r   r$   s      r&    export_globalmaxpool_precomputed.GlobalMaxPool.export_globalmaxpool_precomputed   s    {{$$5E % 

 HH "!!

 &
 	
 HHugY&&rzz2tC!3STr)    N)returnNone)__name__
__module____qualname____firstlineno__staticmethodr'   r2   __static_attributes__r4   r)   r&   r   r      s,    I I U Ur)   r   )

__future__r   numpyr   r   onnx.backend.test.case.baser   onnx.backend.test.case.noder   r   r4   r)   r&   <module>rA      s$    #   , .UD Ur)   