
    h                     .    S SK rS SKJr   " S S\5      rg)    N)OpRunc                   `    \ rS rSrS\R
                  S\S\R
                  4S jrSS.S jrS	r	g)
Concat   aaxisreturnc                    [        UR                  5      S:X  a  [        SU< S35      eU[        UR                  5      :  a<  UR                  SUS-   [        UR                  5      -
  -  -   nUR                  U5      $ U$ )Nr   z&Concat: one input has an empty shape: .)   r   )lenshapeRuntimeErrorreshape)selfr   r   	new_shapes       V/var/www/fran/franai/venv/lib/python3.13/site-packages/onnx/reference/ops/op_concat.py_preprocessConcat._preprocess   so    qww<1!GuANOO3qww<$$(S\*A"BBI99Y''    N)r   c                b   ^ ^ [        UU 4S jU 5       5      n[        R                  " UT5      4$ )Nc              3   H   >#    U  H  nTR                  UT5      v   M     g 7f)N)r   ).0r   r   r   s     r   	<genexpr>Concat._run.<locals>.<genexpr>   s!     >Ad&&q$//s   ")tuplenpconcatenate)r   r   argstargss   ``  r   _runConcat._run   s'    >>>ud+--r    )
__name__
__module____qualname____firstlineno__r   ndarrayintr   r!   __static_attributes__r#   r   r   r   r      s3    RZZ s rzz   $ . .r   r   )numpyr   onnx.reference.op_runr   r   r#   r   r   <module>r-      s     '.U .r   