
    bIg                    :    d dl mZ d dlZd dlmZ  G d de      Zy)    )annotationsN)OpRunc                       e Zd ZddZdddZy)Concatc                    t        |j                        dk(  rt        d|d      |t        |j                        k\  r<|j                  d|dz   t        |j                        z
  z  z   }|j                  |      S |S )Nr   z&Concat: one input has an empty shape: .)   r	   )lenshapeRuntimeErrorreshape)selfaaxis	new_shapes       Y/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/reference/ops/op_concat.py_preprocesszConcat._preprocess   so    qww<1!GuANOO3qww<$$(S\*A"BBI99Y''    N)r   c               ^     t         fd|D              }t        j                  |      fS )Nc              3  B   K   | ]  }j                  |        y w)N)r   ).0r   r   r   s     r   	<genexpr>zConcat._run.<locals>.<genexpr>   s     >Ad&&q$/>s   )tuplenpconcatenate)r   r   argstargss   ``  r   _runzConcat._run   s'    >>>ud+--r   )r   
np.ndarrayr   intreturnr   )__name__
__module____qualname__r   r    r   r   r   r      s      $ .r   r   )
__future__r   numpyr   onnx.reference.op_runr   r   r%   r   r   <module>r)      s    #  '.U .r   