o
    Xih                    @  s   d dl mZ d dlmZmZmZmZmZ d dlm	Z	m
Z
mZ d dlmZ d dlmZ d dlmZ d dlmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z! d dl"m#Z#m$Z$ G d	d
 d
eZ%dS )    )annotations)OptionalSequenceTupleTypeVarUnion)
GraphProtoSparseTensorProtoTensorProto)
get_schema)	TypeAlias)Opset10)BOOL	COMPLEX64
COMPLEX128DOUBLEFLOATFLOAT16INT8INT16INT32INT64STRINGUINT8UINT16UINT32UINT64)OpOpsetc                   @  s  e Zd ZU dd Zedeeeee	e
eeeeeZddddmddZedeeeee	e
eeeeeZddddnddZedeeeZdddddddod d!Zed"eeeeZdpd%d&Zed'eeeZ	dqdrd,d-Zed.eeeeeeee	e
eeeeeeZeZd/e d0< dd1dsd4d5Z!ed6eeeeeeee	e
eeeeeeZ"dtd8d9Z#ed:e$e e$e e$e e$e e$e e$e e$e e$e	 e$e
 e$e e$e e$e e$e e$e e$e Z%e&eeeeeeee	e
eeeeeef Z'd/e d;< dd<dud?d@Z(e&eeeeeeee	e
eeeeeef Z)d/e dA< dddBdvdGdHZ*edIeeeZ+	dwdddddddJdxdPdQZ,edReeeZ-	dwdddddddddSdydWdXZ.edYeee	e
eeZ/edZe	e
Z0ddd[dzd_d`Z1edaeeeeeeee	e
eeeeeeZ2dbdcd{dfdgZ3edheeeZ4d|didjZ5eZ6d/e dk< eZ7d/e dl< d}dndoZ8edpeeeeee	e
eeeeeZ9eZ:d/e dq< d~dsdtZ;edueeeeeeee	e
eeeeeeZ<dd1ddvdwZ=edxeeeeeeee	e
eeeeeeZ>edye	e
Z?dd1dd{d|Z@ed}eeeeeeee	e
eeeeeeZAed~e	e
ZBdd1dddZCedeeeeeeee	e
eeeeeeZDdddZEedeeee	e
eeZF	dwddddddddZGedeeeZHdd1dddZIeZJd/e d< e&eeeeeeee	e
eeeeeef ZKd/e d< dddZLedeeeZMdd1dddZNe
ZOd/e d< eZPd/e d< edeeeeeeee	e
eeeeeeZQdddZRedeeeZSddddddddZTedeeeZUe
ZVd/e d< ddddddddddZWedeeeZXe
ZYd/e d< 	dwddddddZZ			ddddddǄZ[edeeeee	e
eeeeeZ\edeeeee	e
eeeeeZ]edeeeeeeee	e
eeeeeeZ^dd1dddτZ_edeeeee	e
eeeeeZ`	dwddcdddՄZaedeeee	e
ZbdddۄZcedeeee	e
eeZddddݜdddZeedeeee	e
eeZfdddݜdddZgedeeee	e
eeZhdddݜdddZiedeeee	e
eeZjdddݜdddZkedeeee	e
eeZldddݜdddZmedeeee	e
eeZndddݜdddZoedeeee	e
eeZpdddݜdddZqedeeee	e
eeZrdddݜdddZsedeeee	e
eeZtdddݜdddZuedeeee	e
eeZvdddݜdddZwedeeeeeeee	e
eeeeeeZxedeeeZy	dwdddd ddddddZzedeeeZ{dddZ|edeeeeeeee	e
eeeeeeZ}ddddddddZ~edeeeeeeee	e
eeeeeeZede	e
Zdd1dddZed eeeeeeee	e
eeeeeeZdd!d"Zed#e$e e$e e$e e$e e$e e$e e$e e$e	 e$e
 e$e e$e e$e e$e e$e e$e Zed$e	e
Ze&eeeeeeee	e
eeeeeef Zd/e d%< dd'd(Zed)eeeeeeee	e
eeeeeeZe&e$e e$e e$e e$e e$e e$e e$e e$e	 e$e
 e$e e$e e$e e$e e$e e$e f Zd/e d*< dd+d,Ze&e$e e$e e$e e$e e$e e$e e$e e$e	 e$e
 e$e e$e e$e e$e e$e e$e f Zd/e d-< dd.dd0d1Zed2e$e e$e e$e e$e e$e e$e e$e e$e	 e$e
 e$e e$e e$e e$e e$e e$e Zed3e	e
Z	dwdd5d6Zed7e$e e$e e$e e$e e$e e$e e$e e$e	 e$e
 e$e e$e e$e e$e e$e e$e Zed8eeeeeeee	e
eeeeeeZed9e	e
Z	dwdd<d=Zed>e$e e$e e$e e$e e$e e$e e$e e$e	 e$e
 e$e e$e e$e e$e e$e e$e Ze
Zd/e d?< dd@dAZedBeeeeeeee	e
eeeeeeZedCe	e
Z		dqddHdIZedJeeeZdd1ddKdLZedMeeeeeeee	e
eeeeeeZdddNddPdQZedReeeeeeee	e
eeeeeeZedSe	e
Ze&e$e e$e e$e e$e e$e e$e e$e e$e	 e$e
 e$e e$e e$e e$e e$e e$e f Zd/e dT< 	dwdddddVdWZedXeeeeeeee	e
eeeeeeZddYddZd[Zed\eeeee	e
eeeeeZe
Zd/e d]< dddd^ddcddZedeeeeeeeee	e
eeeeeeZdddfddhdiZedjeeeeeeee	e
eeeeeeZddkdlZdS (  Opset11c                 C  s   t | ddS )N    )r   __new__)cls r$   W/home/ubuntu/.local/lib/python3.10/site-packages/onnxscript/onnx_opset/_impl/opset11.pyr"   +   s   zOpset11.__new__T_ArgMaxr      axiskeepdimsdatar)   intr*   returnr   c                C  0   t ddd}t| d|}|| ||||dS )u  [🌐 ArgMax(11)](https://onnx.ai/onnx/operators/onnx__ArgMax.html#argmax-11 "Online Documentation")


        Computes the indices of the max elements of the input tensor's element along the
        provided axis. The resulting tensor has the same rank as the input if keepdims equals 1.
        If keepdims equal 0, then the resulting tensor has the reduced dimension pruned.
        The input tensor must not be empty.
        The type of the output tensor is integer.

        Args:
            data: An input tensor.

            axis: The axis in which to compute the arg indices. Accepted range is [-r,
                r-1] where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        ArgMaxr!   r    r(   r   r   _prepare_inputsselfr+   r)   r*   schemaopr$   r$   r%   r/   =      zOpset11.ArgMaxT_ArgMinc                C  r.   )u  [🌐 ArgMin(11)](https://onnx.ai/onnx/operators/onnx__ArgMin.html#argmin-11 "Online Documentation")


        Computes the indices of the min elements of the input tensor's element along the
        provided axis. The resulting tensor has the same rank as the input if keepdims equals 1.
        If keepdims equal 0, then the resulting tensor has the reduced dimension pruned.
        The input tensor must not be empty.
        The type of the output tensor is integer.

        Args:
            data: An input tensor.

            axis: The axis in which to compute the arg indices. Accepted range is [-r,
                r-1] where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        ArgMinr!   r    r(   r0   r2   r$   r$   r%   r8   d   r6   zOpset11.ArgMinT_AveragePoolNOTSETN)auto_pad	ceil_modecount_include_padpadsstridesXr;   strr<   r=   kernel_shapeSequence[int]r>   Optional[Sequence[int]]r?   c          
   	   C  s8   t ddd}t| d|}	|	| ||||||||dS )u  [🌐 AveragePool(11)](https://onnx.ai/onnx/operators/onnx__AveragePool.html#averagepool-11 "Online Documentation")


         AveragePool consumes an input tensor X and applies average pooling across
         the tensor according to kernel sizes, stride sizes, and pad lengths.
         average pooling consisting of computing the average on all values of a
         subset of the input tensor according to the kernel size and downsampling the
         data into the output tensor Y for further processing. The output spatial shape will be following:
         ```
         output_spatial_shape[i] = floor((input_spatial_shape[i] + pad_shape[i] - ((kernel_spatial_shape[i] - 1) * dilations[i] + 1)) / strides_spatial_shape[i] + 1)
         ```
         or
         ```
         output_spatial_shape[i] = ceil((input_spatial_shape[i] + pad_shape[i] - ((kernel_spatial_shape[i] - 1) * dilations[i] + 1)) / strides_spatial_shape[i] + 1)
         ```
         if ceil_mode is enabled

         ```
         * pad_shape[i] is sum of pads along axis i
         ```

         `auto_pad` is a DEPRECATED attribute. If you are using them currently, the output spatial shape will be following when ceil_mode is enabled:
         ```
         VALID: output_spatial_shape[i] = ceil((input_spatial_shape[i] - ((kernel_spatial_shape[i] - 1) * dilations[i] + 1) + 1) / strides_spatial_shape[i])
         SAME_UPPER or SAME_LOWER: output_spatial_shape[i] = ceil(input_spatial_shape[i] / strides_spatial_shape[i])
         ```
        or when ceil_mode is disabled:
         ```
         VALID: output_spatial_shape[i] = floor((input_spatial_shape[i] - ((kernel_spatial_shape[i] - 1) * dilations[i] + 1) + 1) / strides_spatial_shape[i])
         SAME_UPPER or SAME_LOWER: output_spatial_shape[i] = floor(input_spatial_shape[i] / strides_spatial_shape[i])
         ```

         And pad shape will be following if `SAME_UPPER` or `SAME_LOWER`:
         ```
         pad_shape[i] = (output_spatial_shape[i] - 1) * strides_spatial_shape[i] + ((kernel_spatial_shape[i] - 1) * dilations[i] + 1) - input_spatial_shape[i]
         ```
         The output of each pooling window is divided by the number of elements (exclude pad when attribute count_include_pad is zero).


        Args:
            X: (differentiable) Input data tensor from the previous operator; dimensions
                for image case are (N x C x H x W), where N is the batch size, C is the
                number of channels, and H and W are the height and the width of the
                data. For non image case, the dimensions are in the form of (N x C x D1
                x D2 ... Dn), where N is the batch size. Optionally, if dimension
                denotation is in effect, the operation expects the input data tensor to
                arrive with the dimension denotation of [DATA_BATCH, DATA_CHANNEL,
                DATA_FEATURE, DATA_FEATURE ...].

            auto_pad: auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID.
                Where default value is NOTSET, which means explicit padding is used.
                SAME_UPPER or SAME_LOWER mean pad the input so that `output_shape[i] =
                ceil(input_shape[i] / strides[i])` for each axis `i`. The padding is
                split between the two sides equally or almost equally (depending on
                whether it is even or odd). In case the padding is an odd number, the
                extra padding is added at the end for SAME_UPPER and at the beginning
                for SAME_LOWER.

            ceil_mode: Whether to use ceil or floor (default) to compute the output
                shape.

            count_include_pad: Whether include pad pixels when calculating values for
                the edges. Default is 0, doesn't count include pad.

            kernel_shape: The size of the kernel along each axis.

            pads: Padding for the beginning and ending along each spatial axis, it can
                take any value greater than or equal to 0. The value represent the
                number of pixels added to the beginning and end part of the
                corresponding axis. `pads` format should be as follow [x1_begin,
                x2_begin...x1_end, x2_end,...], where xi_begin the number of pixels
                added at the beginning of axis `i` and xi_end, the number of pixels
                added at the end of axis `i`. This attribute cannot be used
                simultaneously with auto_pad attribute. If not present, the padding
                defaults to 0 along start and end of each spatial axis.

            strides: Stride along each spatial axis. If not present, the stride defaults
                to 1 along each spatial axis.
        AveragePoolr!   r    )r;   r<   r=   rB   r>   r?   r0   )
r3   r@   r;   r<   r=   rB   r>   r?   r4   r5   r$   r$   r%   rE   ~   s   [
zOpset11.AveragePool
T_BitShiftY	directionc                C  0   t ddd}t| d|}|| |||d|iS )u  [🌐 BitShift(11)](https://onnx.ai/onnx/operators/onnx__BitShift.html#bitshift-11 "Online Documentation")


        Bitwise shift operator performs element-wise operation. For each input element, if the
        attribute "direction" is "RIGHT", this operator moves its binary representation toward
        the right side so that the input value is effectively decreased. If the attribute "direction"
        is "LEFT", bits of binary representation moves toward the left side, which results the
        increase of its actual value. The input X is the tensor to be shifted and another input
        Y specifies the amounts of shifting. For example, if "direction" is "Right", X is [1, 4],
        and S is [1, 1], the corresponding output Z would be [0, 2]. If "direction" is "LEFT" with
        X=[1, 2] and S=[1, 2], the corresponding output Y would be [2, 8].

        Because this operator supports Numpy-style broadcasting, X's and Y's shapes are
        not necessarily identical.
        This operator supports **multidirectional (i.e., Numpy-style) broadcasting**; for more details please check `Broadcasting in ONNX <https://github.com/onnx/onnx/blob/master/docs/Broadcasting.md>`_.

        Args:
            X: (non-differentiable) First operand, input to be shifted.

            Y: (non-differentiable) Second operand, amounts of shift.

            direction: Direction of moving bits. It can be either "RIGHT" (for right
                shift) or "LEFT" (for left shift).
        BitShiftr!   r    rH   r0   )r3   r@   rG   rH   r4   r5   r$   r$   r%   rJ         zOpset11.BitShiftT_ClipinputminOptional[T_Clip]maxc                 C  ,   t ddd}t| d|}|| |||| S )u  [🌐 Clip(11)](https://onnx.ai/onnx/operators/onnx__Clip.html#clip-11 "Online Documentation")


        Clip operator limits the given input within an interval. The interval is
        specified by the inputs 'min' and 'max'. They default to
        numeric_limits::lowest() and numeric_limits::max(), respectively.


        Args:
            input: Input tensor whose elements to be clipped

            min: (optional) Minimum value, under which element is replaced by min. It
                must be a scalar(tensor of empty shape).

            max: (optional) Maximum value, above which element is replaced by max. It
                must be a scalar(tensor of empty shape).
        Clipr!   r    r0   )r3   rM   rN   rP   r4   r5   r$   r$   r%   rR     s   zOpset11.Clip
T_Compressr   T1_Compress)r)   	conditionOptional[int]c                C  rI   )u  [🌐 Compress(11)](https://onnx.ai/onnx/operators/onnx__Compress.html#compress-11 "Online Documentation")


            Selects slices from an input tensor along a given axis where condition evaluates to True for each axis index.
            In case axis is not provided, input is flattened before elements are selected.
            Compress behaves like numpy.compress: https://docs.scipy.org/doc/numpy/reference/generated/numpy.compress.html


        Args:
            input: (differentiable) Tensor of rank r >= 1.

            condition: (non-differentiable) Rank 1 tensor of booleans to indicate which
                slices or data elements to be selected. Its length can be less than the
                input length along the axis or the flattened input size if axis is not
                specified. In such cases data slices or elements exceeding the condition
                length are discarded.

            axis: (Optional) Axis along which to take slices. If not specified, input is
                flattened before elements being selected. Negative value means counting
                dimensions from the back. Accepted range is [-r, r-1] where r =
                rank(input).
        Compressr!   r    r)   r0   )r3   rM   rU   r)   r4   r5   r$   r$   r%   rW   5  rK   zOpset11.CompressT_Concatinputsc                G  s4   t ddd}t| d|}|| j|g|R  d|iS )u  [🌐 Concat(11)](https://onnx.ai/onnx/operators/onnx__Concat.html#concat-11 "Online Documentation")

        Concatenate a list of tensors into a single tensor. All input tensors must have the same shape, except for the dimension size of the axis to concatenate on.

        Args:
            inputs: (variadic) List of tensors for concatenation

            axis: Which axis to concat on. A negative value means counting dimensions
                from the back. Accepted range is [-r, r-1] where r = rank(inputs)..
        Concatr!   r    r)   r0   )r3   r)   rY   r4   r5   r$   r$   r%   rZ   f  s   zOpset11.ConcatS_ConcatFromSequenceT_ConcatFromSequence)new_axisinput_sequencer]   c                C  r.   )uv  [🌐 ConcatFromSequence(11)](https://onnx.ai/onnx/operators/onnx__ConcatFromSequence.html#concatfromsequence-11 "Online Documentation")


        Concatenate a sequence of tensors into a single tensor.
        All input tensors must have the same shape, except for the dimension size of the axis to concatenate on.
        By default 'new_axis' is 0, the behavior is similar to numpy.concatenate.
        When 'new_axis' is 1, the behavior is similar to numpy.stack.


        Args:
            input_sequence: Sequence of tensors for concatenation

            axis: Which axis to concat on. Accepted range in `[-r, r - 1]`, where `r` is
                the rank of input tensors. When `new_axis` is 1, accepted range is `[-r
                - 1, r]`.

            new_axis: Insert and concatenate on a new axis or not, default 0 means do
                not insert new axis.
        ConcatFromSequencer!   r    )r)   r]   r0   )r3   r^   r)   r]   r4   r5   r$   r$   r%   r_     s   zOpset11.ConcatFromSequence
T_Constantsparse_valuevaluerb   Optional[SparseTensorProto]rc   Optional[TensorProto]c                C  s$   t ddd}t| d|}|||dS )u  [🌐 Constant(11)](https://onnx.ai/onnx/operators/onnx__Constant.html#constant-11 "Online Documentation")


        A constant tensor. Exactly one of the two attributes, either value or sparse_value,
        must be specified.


        Args:
            sparse_value: The value for the elements of the output tensor in sparse
                format.

            value: The value for the elements of the output tensor.
        Constantr!   r    ra   r   r   )r3   rb   rc   r4   r5   r$   r$   r%   rf     s   zOpset11.ConstantT_Convr;   	dilationsgrouprB   r>   r?   WBOptional[T_Conv]rj   rk   c             	   C  s<   t ddd}
t| d|
}|| |
|||||||||	dS )u2  [🌐 Conv(11)](https://onnx.ai/onnx/operators/onnx__Conv.html#conv-11 "Online Documentation")


        The convolution operator consumes an input tensor and a filter, and
        computes the output.

        Args:
            X: (differentiable) Input data tensor from previous layer; has size (N x C x
                H x W), where N is the batch size, C is the number of channels, and H
                and W are the height and width. Note that this is for the 2D image.
                Otherwise the size is (N x C x D1 x D2 ... x Dn). Optionally, if
                dimension denotation is in effect, the operation expects input data
                tensor to arrive with the dimension denotation of [DATA_BATCH,
                DATA_CHANNEL, DATA_FEATURE, DATA_FEATURE ...].

            W: (differentiable) The weight tensor that will be used in the convolutions;
                has size (M x C/group x kH x kW), where C is the number of channels, and
                kH and kW are the height and width of the kernel, and M is the number of
                feature maps. For more than 2 dimensions, the kernel shape will be (M x
                C/group x k1 x k2 x ... x kn), where (k1 x k2 x ... kn) is the dimension
                of the kernel. Optionally, if dimension denotation is in effect, the
                operation expects the weight tensor to arrive with the dimension
                denotation of [FILTER_OUT_CHANNEL, FILTER_IN_CHANNEL, FILTER_SPATIAL,
                FILTER_SPATIAL ...]. Assuming zero based indices for the shape array,
                X.shape[1] == (W.shape[1] * group) == C and W.shape[0] mod G == 0. Or in
                other words FILTER_IN_CHANNEL multiplied by the number of groups should
                be equal to DATA_CHANNEL and the number of feature maps M should be a
                multiple of the number of groups G.

            B: (optional, differentiable) Optional 1D bias to be added to the
                convolution, has size of M.

            auto_pad: auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID.
                Where default value is NOTSET, which means explicit padding is used.
                SAME_UPPER or SAME_LOWER mean pad the input so that `output_shape[i] =
                ceil(input_shape[i] / strides[i])` for each axis `i`. The padding is
                split between the two sides equally or almost equally (depending on
                whether it is even or odd). In case the padding is an odd number, the
                extra padding is added at the end for SAME_UPPER and at the beginning
                for SAME_LOWER.

            dilations: dilation value along each spatial axis of the filter. If not
                present, the dilation defaults is 1 along each spatial axis.

            group: number of groups input channels and output channels are divided into.

            kernel_shape: The shape of the convolution kernel. If not present, should be
                inferred from input W.

            pads: Padding for the beginning and ending along each spatial axis, it can
                take any value greater than or equal to 0. The value represent the
                number of pixels added to the beginning and end part of the
                corresponding axis. `pads` format should be as follow [x1_begin,
                x2_begin...x1_end, x2_end,...], where xi_begin the number of pixels
                added at the beginning of axis `i` and xi_end, the number of pixels
                added at the end of axis `i`. This attribute cannot be used
                simultaneously with auto_pad attribute. If not present, the padding
                defaults to 0 along start and end of each spatial axis.

            strides: Stride along each spatial axis. If not present, the stride defaults
                is 1 along each spatial axis.
        Convr!   r    ri   r0   )r3   r@   rl   rm   r;   rj   rk   rB   r>   r?   r4   r5   r$   r$   r%   ro     s   LzOpset11.ConvT_ConvTransposer;   rj   rk   rB   output_paddingoutput_shaper>   r?   Optional[T_ConvTranspose]rr   rs   c                C  s@   t ddd}t| d|}|| ||||||||||	|
|dS )uz  [🌐 ConvTranspose(11)](https://onnx.ai/onnx/operators/onnx__ConvTranspose.html#convtranspose-11 "Online Documentation")


        The convolution transpose operator consumes an input tensor and a filter,
        and computes the output.

        If the pads parameter is provided the shape of the output is calculated via the following equation:

          output_shape[i] = stride[i] * (input_size[i] - 1) + output_padding[i] + ((kernel_shape[i] - 1) * dilations[i] + 1) - pads[start_i] - pads[end_i]

        output_shape can also be explicitly specified in which case pads values are auto generated using these equations:

          total_padding[i] = stride[i] * (input_size[i] - 1) + output_padding[i] + ((kernel_shape[i] - 1) * dilations[i] + 1) - output_shape[i]
          If (auto_pads == SAME_UPPER): pads[start_i] = total_padding[i]/2; pads[end_i] = total_padding[i] - (total_padding[i]/2)
          Else: pads[start_i] = total_padding[i] - (total_padding[i]/2); pads[end_i] = (total_padding[i]/2).



        Args:
            X: (differentiable) Input data tensor from previous layer; has size (N x C x
                H x W), where N is the batch size, C is the number of channels, and H
                and W are the height and width. Note that this is for the 2D image.
                Otherwise the size is (N x C x D1 x D2 ... x Dn)

            W: (differentiable) The weight tensor that will be used in the convolutions;
                has size (C x M/group x kH x kW), where C is the number of channels, and
                kH and kW are the height and width of the kernel, and M is the number of
                feature maps. For more than 2 dimensions, the weight shape will be (C x
                M/group x k1 x k2 x ... x kn), where (k1 x k2 x ... x kn) is the
                dimension of the kernel. The number of channels in the output should be
                equal to W.shape[1] * group (assuming zero based indices of the shape
                array)

            B: (optional, differentiable) Optional 1D bias to be added to the
                convolution, has size of M.

            auto_pad: auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID.
                Where default value is NOTSET, which means explicit padding is used.
                SAME_UPPER or SAME_LOWER mean pad the input so that `output_shape[i] =
                input_shape[i] * strides[i]` for each axis `i`. The padding is split
                between the two sides equally or almost equally (depending on whether it
                is even or odd). In case the padding is an odd number, the extra padding
                is added at the end for SAME_UPPER and at the beginning for SAME_LOWER.

            dilations: dilation value along each spatial axis of the filter. If not
                present, the dilation defaults to 1 along each spatial axis.

            group: number of groups input channels and output channels are divided into.

            kernel_shape: The shape of the convolution kernel. If not present, should be
                inferred from input W.

            output_padding: Additional elements added to the side with higher coordinate
                indices in the output. Each padding value in "output_padding" must be
                less than the corresponding stride/dilation dimension. By default, this
                attribute is a zero vector. Note that this attribute doesn't directly
                affect the computed output values. It only controls the selection of the
                computed values, so changing this attribute only adds or removes output
                elements. If "output_shape" is explicitly provided, "output_padding"
                does not contribute additional size to "output_shape" but participates
                in the computation of the needed padding amount. This is also called
                adjs or adjustment in some frameworks.

            output_shape: The shape of the output can be explicitly set which will cause
                pads values to be auto generated. If output_shape is specified pads
                values are ignored. See doc for details for equations to generate pads.
                Note that the output_shape attribute value should not include dimensions
                for batch size and channels, which are automatically inferred.

            pads: Padding for the beginning and ending along each spatial axis, it can
                take any value greater than or equal to 0. The value represent the
                number of pixels added to the beginning and end part of the
                corresponding axis. `pads` format should be as follow [x1_begin,
                x2_begin...x1_end, x2_end,...], where xi_begin the number of pixels
                added at the beginning of axis `i` and xi_end, the number of pixels
                added at the end of axis `i`. This attribute cannot be used
                simultaneously with auto_pad attribute. If not present, the padding
                defaults to 0 along start and end of each spatial axis.

            strides: Stride along each spatial axis. If not present, the stride defaults
                to 1 along each spatial axis.
        ConvTransposer!   r    rq   r0   )r3   r@   rl   rm   r;   rj   rk   rB   rr   rs   r>   r?   r4   r5   r$   r$   r%   ru   <  s   bzOpset11.ConvTransposeT_CumSum	T2_CumSum	exclusivereversexry   rz   c                C  2   t ddd}t| d|}|| |||||dS )u  [🌐 CumSum(11)](https://onnx.ai/onnx/operators/onnx__CumSum.html#cumsum-11 "Online Documentation")


        Performs cumulative sum of the input elements along the given axis.
        By default, it will do the sum inclusively meaning the first element is copied as is.
        Through an `exclusive` attribute, this behavior can change to exclude the first element.
        It can also perform summation in the opposite direction of the axis. For that, set `reverse` attribute to 1.

        Example:
        ::

            input_x = [1, 2, 3]
            axis=0
            output = [1, 3, 6]
            exclusive=1
            output = [0, 1, 3]
            exclusive=0
            reverse=1
            output = [6, 5, 3]
            exclusive=1
            reverse=1
            output = [5, 3, 0]




        Args:
            x: (differentiable) An input tensor that is to be processed.

            axis: (non-differentiable) A 0-D tensor. Must be in the range [-rank(x),
                rank(x)-1]. Negative value means counting dimensions from the back.

            exclusive: If set to 1 will return exclusive sum in which the top element is
                not included. In other terms, if set to 1, the j-th output element would
                be the sum of the first (j-1) elements. Otherwise, it would be the sum
                of the first j elements.

            reverse: If set to 1 will perform the sums in reverse direction.
        CumSumr!   r    rx   r0   )r3   r{   r)   ry   rz   r4   r5   r$   r$   r%   r}     s   +zOpset11.CumSumT_DepthToSpaceDCR)mode	blocksizer   c                C  r.   )u  [🌐 DepthToSpace(11)](https://onnx.ai/onnx/operators/onnx__DepthToSpace.html#depthtospace-11 "Online Documentation")

        DepthToSpace rearranges (permutes) data from depth into blocks of spatial data.
        This is the reverse transformation of SpaceToDepth. More specifically, this op outputs a copy of
        the input tensor where values from the depth dimension are moved in spatial blocks to the height
        and width dimensions. By default, `mode` = `DCR`.
        In the DCR mode, elements along the depth dimension from the input tensor are rearranged in the
        following order: depth, column, and then row. The output y is computed from the input x as below:

        b, c, h, w = x.shape

        tmp = np.reshape(x, [b, blocksize, blocksize, c // (blocksize**2), h, w])

        tmp = np.transpose(tmp, [0, 3, 4, 1, 5, 2])

        y = np.reshape(tmp, [b, c // (blocksize**2), h * blocksize, w * blocksize])


        In the CRD mode, elements along the depth dimension from the input tensor are rearranged in the
        following order: column, row, and the depth. The output y is computed from the input x as below:

        b, c, h, w = x.shape

        tmp = np.reshape(x, [b, c // (blocksize ** 2), blocksize, blocksize, h, w])

        tmp = np.transpose(tmp, [0, 1, 4, 2, 5, 3])

        y = np.reshape(tmp, [b, c // (blocksize ** 2), h * blocksize, w * blocksize])



        Args:
            input: Input tensor of [N,C,H,W], where N is the batch axis, C is the
                channel or depth, H is the height and W is the width.

            blocksize: Blocks of [blocksize, blocksize] are moved.

            mode: DCR (default) for depth-column-row order re-arrangement. Use CRD for
                column-row-depth order.
        DepthToSpacer!   r    )r   r   r0   )r3   rM   r   r   r4   r5   r$   r$   r%   r     s   ,zOpset11.DepthToSpaceT_Detc                 C  (   t ddd}t| d|}|| || S )uS  [🌐 Det(11)](https://onnx.ai/onnx/operators/onnx__Det.html#det-11 "Online Documentation")


        Det calculates determinant of a square matrix or batches of square matrices.
        Det takes one input tensor of shape `[*, M, M]`, where `*` is zero or more batch dimensions,
        and the inner-most 2 dimensions form square matrices.
        The output is a tensor of shape `[*]`, containing the determinants of all input submatrices.
        e.g., When the input is 2-D, the output is a scalar(shape is empty: `[]`).


        Args:
            X: (differentiable) Input tensor
        Detr!   r    r0   r3   r@   r4   r5   r$   r$   r%   r   $  s   zOpset11.DetT1_DynamicQuantizeLinearT2_DynamicQuantizeLinear@Tuple[T2_DynamicQuantizeLinear, FLOAT, T2_DynamicQuantizeLinear]c                 C  r   )u  [🌐 DynamicQuantizeLinear(11)](https://onnx.ai/onnx/operators/onnx__DynamicQuantizeLinear.html#dynamicquantizelinear-11 "Online Documentation")


        A Function to fuse calculation for Scale, Zero Point and FP32->8Bit conversion of FP32 Input data.
        Outputs Scale, ZeroPoint and Quantized Input for a given FP32 Input.
        Scale is calculated as:
        ::

            y_scale = (maximum(0, max(x)) - minimum(0, min(x))) / (qmax - qmin)



        * where qmax and qmin are max and min values for quantization range i.e. [0, 255] in case of uint8
        * data range is adjusted to include 0.

        Zero point is calculated as:
        ::

            intermediate_zero_point = qmin - min(x)/y_scale
            y_zero_point = cast(round(saturate(itermediate_zero_point)))



        * where qmax and qmin are max and min values for quantization range .i.e [0, 255] in case of uint8
        * for saturation, it saturates to [0, 255] if it's uint8, or [-127, 127] if it's int8. Right now only uint8 is supported.
        * rounding to nearest ties to even.

        Data quantization formula is:
        ::

            y = saturate (round (x / y_scale) + y_zero_point)



        * for saturation, it saturates to [0, 255] if it's uint8, or [-127, 127] if it's int8. Right now only uint8 is supported.
        * rounding to nearest ties to even.


        Args:
            x: Input tensor
        DynamicQuantizeLinearr!   r    r0   )r3   r{   r4   r5   r$   r$   r%   r   ;  s   -zOpset11.DynamicQuantizeLinearT_EqualT1_EqualAc                 C  *   t ddd}t| d|}|| ||| S )uv  [🌐 Equal(11)](https://onnx.ai/onnx/operators/onnx__Equal.html#equal-11 "Online Documentation")


        Returns the tensor resulted from performing the `equal` logical operation
        elementwise on the input tensors `A` and `B` (with Numpy-style broadcasting support).

        This operator supports **multidirectional (i.e., Numpy-style) broadcasting**; for more details please check `Broadcasting in ONNX <https://github.com/onnx/onnx/blob/master/docs/Broadcasting.md>`_.


        Args:
            A: First input operand for the logical operator.

            B: Second input operand for the logical operator.
        Equalr!   r    r0   )r3   r   rm   r4   r5   r$   r$   r%   r   ~  s   zOpset11.Equal	T_Flattenc                C  .   t ddd}t| d|}|| ||d|iS )ub  [🌐 Flatten(11)](https://onnx.ai/onnx/operators/onnx__Flatten.html#flatten-11 "Online Documentation")


        Flattens the input tensor into a 2D matrix. If input tensor has shape
        (d_0, d_1, ... d_n) then the output will have shape
        (d_0 X d_1 ... d_(axis-1), d_axis X d_(axis+1) ... X dn).


        Args:
            input: A tensor of rank >= axis.

            axis: Indicate up to which input dimensions (exclusive) should be flattened
                to the outer dimension of the output. The value for axis must be in the
                range [-r, r], where r is the rank of the input tensor. Negative value
                means counting dimensions from the back. When axis = 0, the shape of the
                output tensor is (1, (d_0 X d_1 ... d_n), where the shape of the input
                tensor is (d_0, d_1, ... d_n).
        Flattenr!   r    r)   r0   r3   rM   r)   r4   r5   r$   r$   r%   r     s   zOpset11.FlattenT_GatherTind_Gatherindicesc                C  rI   )u*  [🌐 Gather(11)](https://onnx.ai/onnx/operators/onnx__Gather.html#gather-11 "Online Documentation")


        Given `data` tensor of rank r >= 1, and `indices` tensor of rank q, gather
        entries of the axis dimension of `data` (by default outer-most one as axis=0) indexed by `indices`, and concatenates
        them in an output tensor of rank q + (r - 1).

        axis = 0 :

        Let
        k = indices[i_{0}, ..., i_{q-1}]
        Then
        output[i_{0}, ..., i_{q-1}, j_{0}, ..., j_{r-2}] = input[k , j_{0}, ..., j_{r-2}]

        ::

              data = [
                  [1.0, 1.2],
                  [2.3, 3.4],
                  [4.5, 5.7],
              ]
              indices = [
                  [0, 1],
                  [1, 2],
              ]
              output = [
                  [
                      [1.0, 1.2],
                      [2.3, 3.4],
                  ],
                  [
                      [2.3, 3.4],
                      [4.5, 5.7],
                  ],
              ]


        axis = 1 :

        Let
        k = indices[i_{0}, ..., i_{q-1}]
        Then
        output[j_{0}, i_{0}, ..., i_{q-1}, j_{1}, ..., j_{r-2}] = input[j_{0}, k, j_{1}, ..., j_{r-2}]

        ::

              data = [
                  [1.0, 1.2, 1.9],
                  [2.3, 3.4, 3.9],
                  [4.5, 5.7, 5.9],
              ]
              indices = [
                  [0, 2],
              ]
              axis = 1,
              output = [
                  [[1.0, 1.9]],
                  [[2.3, 3.9]],
                  [[4.5, 5.9]],
              ]




        Args:
            data: Tensor of rank r >= 1.

            indices: Tensor of int32/int64 indices, of any rank q. All index values are
                expected to be within bounds [-s, s-1] along axis of size s. It is an
                error if any of the index values are out of bounds.

            axis: Which axis to gather on. Negative value means counting dimensions from
                the back. Accepted range is [-r, r-1] where r = rank(data).
        Gatherr!   r    r)   r0   r3   r+   r   r)   r4   r5   r$   r$   r%   r     s   LzOpset11.GatherT_GatherElementsTind_GatherElementsc                C  rI   )uy	  [🌐 GatherElements(11)](https://onnx.ai/onnx/operators/onnx__GatherElements.html#gatherelements-11 "Online Documentation")



        GatherElements takes two inputs `data` and `indices` of the same rank r >= 1
        and an optional attribute `axis` that identifies an axis of `data`
        (by default, the outer-most axis, that is axis 0). It is an indexing operation
        that produces its output by indexing into the input data tensor at index
        positions determined by elements of the `indices` tensor.
        Its output shape is the same as the shape of `indices` and consists of one value
        (gathered from the `data`) for each element in `indices`.

        For instance, in the 3-D case (r = 3), the output produced is determined
        by the following equations:
        ::

              out[i][j][k] = input[index[i][j][k]][j][k] if axis = 0,
              out[i][j][k] = input[i][index[i][j][k]][k] if axis = 1,
              out[i][j][k] = input[i][j][index[i][j][k]] if axis = 2,



        This operator is also the inverse of ScatterElements. It is similar to Torch's gather operation.

        Example 1:
        ::

              data = [
                  [1, 2],
                  [3, 4],
              ]
              indices = [
                  [0, 0],
                  [1, 0],
              ]
              axis = 1
              output = [
                  [
                    [1, 1],
                    [4, 3],
                  ],
              ]


        Example 2:
        ::

              data = [
                  [1, 2, 3],
                  [4, 5, 6],
                  [7, 8, 9],
              ]
              indices = [
                  [1, 2, 0],
                  [2, 0, 0],
              ]
              axis = 0
              output = [
                  [
                    [4, 8, 3],
                    [7, 2, 3],
                  ],
              ]




        Args:
            data: Tensor of rank r >= 1.

            indices: Tensor of int32/int64 indices, with the same rank r as the input.
                All index values are expected to be within bounds [-s, s-1] along axis
                of size s. It is an error if any of the index values are out of bounds.

            axis: Which axis to gather on. Negative value means counting dimensions from
                the back. Accepted range is [-r, r-1] where r = rank(data).
        GatherElementsr!   r    r)   r0   r   r$   r$   r%   r   7  s   QzOpset11.GatherElements
T_GatherNDc                 C  r   )uT  [🌐 GatherND(11)](https://onnx.ai/onnx/operators/onnx__GatherND.html#gathernd-11 "Online Documentation")


        Given `data` tensor of rank `r` >= 1, and `indices` tensor of rank `q` >= 1, this operator gathers
        slices of `data` into an output tensor of rank `q + r - indices_shape[-1] - 1`.

        `indices` is an q-dimensional integer tensor, best thought of as a `(q-1)`-dimensional tensor of index-tuples into `data`,
        where each element defines a slice of `data`

        Some salient points about the inputs' rank and shape:

        1) r >= 1 and q >= 1 are to be honored. There is no dependency condition to be met between ranks `r` and `q`

        2) The `indices_shape[-1]` should have a value between 1 (inclusive) and rank `r` (inclusive)

        3) All values in `indices` are expected to be within bounds [-s, s-1] along axis of size `s` (i.e.) `-data_shape[i] <= indices[...,i] <= data_shape[i] - 1`.
           It is an error if any of the index values are out of bounds.

        The output is computed as follows:

        The output tensor is obtained by mapping each index-tuple in the `indices` tensor to the corresponding slice of the input `data`.

        1) If `indices_shape[-1] > r` => error condition

        2) If `indices_shape[-1] == r`, since the rank of `indices` is `q`, `indices` can be thought of as a `(q-1)`-dimensional tensor
           containing 1-D tensors of dimension `r`. Let us think of each such `r` ranked tensor as `indices_slice`.
           Each *scalar value* corresponding to `data[indices_slice]` is filled into the corresponding location of the `(q-1)`-dimensional tensor
           to form the `output` tensor (Example 1 below)

        3) If `indices_shape[-1] < r`, since the rank of `indices` is `q`, `indices` can be thought of as a `(q-1)`-dimensional tensor
           containing 1-D tensors of dimension `< r`. Let us think of each such tensors as `indices_slice`.
           Each *tensor slice* corresponding to `data[indices_slice , :]` is filled into the corresponding location of the `(q-1)`-dimensional tensor
           to form the `output` tensor (Examples 2, 3, and 4 below)

        This operator is the inverse of `ScatterND`.

        `Example 1`

          data    = [[0,1],[2,3]]   # data_shape = [2, 2]

          indices = [[0,0],[1,1]]   # indices_shape = [2, 2]

          output  = [0,3]           # output_shape = [2]

        `Example 2`

          data    = [[0,1],[2,3]]  # data_shape = [2, 2]

          indices = [[1],[0]]      # indices_shape = [2, 1]

          output  = [[2,3],[0,1]]  # output_shape = [2, 2]

        `Example 3`

          data    = [[[0,1],[2,3]],[[4,5],[6,7]]] # data_shape = [2, 2, 2]

          indices = [[0,1],[1,0]]                 # indices_shape = [2, 2]

          output  = [[2,3],[4,5]]                 # output_shape = [2, 2]

        `Example 4`

          data    = [[[0,1],[2,3]],[[4,5],[6,7]]] # data_shape = [2, 2, 2]

          indices = [[[0,1]],[[1,0]]]             # indices_shape = [2, 1, 2]

          output  = [[[2,3]],[[4,5]]]             # output_shape = [2, 1, 2]



        Args:
            data: Tensor of rank r >= 1.

            indices: Tensor of rank q >= 1. All index values are expected to be within
                bounds [-s, s-1] along axis of size s. It is an error if any of the
                index values are out of bounds.
        GatherNDr!   r    r0   )r3   r+   r   r4   r5   r$   r$   r%   r     s   OzOpset11.GatherNDT_Gemmg      ?alphabetatransAtransBCOptional[T_Gemm]r   floatr   r   r   c          
      C  s8   t ddd}t| d|}	|	| ||||||||dS )u  [🌐 Gemm(11)](https://onnx.ai/onnx/operators/onnx__Gemm.html#gemm-11 "Online Documentation")

        General Matrix multiplication:
        https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms#Level_3

        A' = transpose(A) if transA else A

        B' = transpose(B) if transB else B

        Compute Y = alpha * A' * B' + beta * C, where input tensor A has shape (M, K) or (K, M),
        input tensor B has shape (K, N) or (N, K), input tensor C is broadcastable to shape (M, N),
        and output tensor Y has shape (M, N). A will be transposed before doing the
        computation if attribute transA is non-zero, same for B and transB.
        This operator supports **unidirectional broadcasting** (tensor C should be unidirectional broadcastable to tensor A * B); for more details please check `Broadcasting in ONNX <https://github.com/onnx/onnx/blob/master/docs/Broadcasting.md>`_.
        This operator has **optional** inputs/outputs. See `ONNX <https://github.com/onnx/onnx/blob/master/docs/IR.md>`_ for more details about the representation of optional arguments. An empty string may be used in the place of an actual argument's name to indicate a missing argument. Trailing optional arguments (those not followed by an argument that is present) may also be simply omitted.


        Args:
            A: Input tensor A. The shape of A should be (M, K) if transA is 0, or (K, M)
                if transA is non-zero.

            B: Input tensor B. The shape of B should be (K, N) if transB is 0, or (N, K)
                if transB is non-zero.

            C: (optional) Optional input tensor C. If not specified, the computation is
                done as if C is a scalar 0. The shape of C should be unidirectional
                broadcastable to (M, N).

            alpha: Scalar multiplier for the product of input tensors A * B.

            beta: Scalar multiplier for input tensor C.

            transA: Whether A should be transposed

            transB: Whether B should be transposed
        Gemmr!   r    r   r0   )
r3   r   rm   r   r   r   r   r   r4   r5   r$   r$   r%   r     s   0zOpset11.Gemm	T_Hardmaxc                C  r   )u  [🌐 Hardmax(11)](https://onnx.ai/onnx/operators/onnx__Hardmax.html#hardmax-11 "Online Documentation")


        The operator computes the hardmax (1 for the first maximum value, and 0 for all others) values for each layer in the batch
         of the given input.

        The input does not need to explicitly be a 2D vector; rather, it will be
        coerced into one. For an arbitrary n-dimensional tensor
        input \in [a_0, a_1, ..., a_{k-1}, a_k, ..., a_{n-1}] and k is
        the axis provided, then input will be coerced into a 2-dimensional tensor with
        dimensions [a_0 * ... * a_{k-1}, a_k * ... * a_{n-1}]. For the default
        case where axis=1, this means the input tensor will be coerced into a 2D tensor
        of dimensions [a_0, a_1 * ... * a_{n-1}], where a_0 is often the batch size.
        In this situation, we must have a_0 = N and a_1 * ... * a_{n-1} = D.
        Each of these dimensions must be matched correctly, or else the operator
        will throw errors. The output tensor has the same shape
        and contains the hardmax values of the corresponding input.


        Args:
            input: The input tensor that's coerced into a 2D matrix of size (NxD) as
                described above.

            axis: Describes the axis of the inputs when coerced to 2D; defaults to one
                because the 0th axis most likely describes the batch_size. Negative
                value means counting dimensions from the back. Accepted range is [-r,
                r-1] where r = rank(input).
        Hardmaxr!   r    r)   r0   r   r$   r$   r%   r   0     zOpset11.HardmaxB_IfV_Ifcondelse_branchr   then_branchc                C  r.   )u  [🌐 If(11)](https://onnx.ai/onnx/operators/onnx__If.html#if-11 "Online Documentation")

        If conditional

        Args:
            cond: Condition for the if. The tensor must contain a single element.

            else_branch: Graph to run if condition is false. Has N outputs: values you
                wish to be live-out to the enclosing scope. The number of outputs must
                match the number of outputs in the then_branch.

            then_branch: Graph to run if condition is true. Has N outputs: values you
                wish to be live-out to the enclosing scope. The number of outputs must
                match the number of outputs in the else_branch.
        Ifr!   r    )r   r   r0   )r3   r   r   r   r4   r5   r$   r$   r%   r   f  s   
z
Opset11.IfT_LogSoftmaxc                C  r   )u  [🌐 LogSoftmax(11)](https://onnx.ai/onnx/operators/onnx__LogSoftmax.html#logsoftmax-11 "Online Documentation")


        The operator computes the logsoftmax (log of softmax) values for each layer in the batch
         of the given input.

        The input does not need to explicitly be a 2D vector; rather, it will be
        coerced into one. For an arbitrary n-dimensional tensor
        input \in [a_0, a_1, ..., a_{k-1}, a_k, ..., a_{n-1}] and k is
        the axis provided, then input will be coerced into a 2-dimensional tensor with
        dimensions [a_0 * ... * a_{k-1}, a_k * ... * a_{n-1}]. For the default
        case where axis=1, this means the input tensor will be coerced into a 2D tensor
        of dimensions [a_0, a_1 * ... * a_{n-1}], where a_0 is often the batch size.
        In this situation, we must have a_0 = N and a_1 * ... * a_{n-1} = D.
        Each of these dimensions must be matched correctly, or else the operator
        will throw errors. The output tensor has the same shape
        and contains the logsoftmax values of the corresponding input.


        Args:
            input: The input tensor that's coerced into a 2D matrix of size (NxD) as
                described above.

            axis: Describes the axis of the inputs when coerced to 2D; defaults to one
                because the 0th axis most likely describes the batch_size. Negative
                value means counting dimensions from the back. Accepted range is [-r,
                r-1] where r = rank(input).
        
LogSoftmaxr!   r    r)   r0   r   r$   r$   r%   r     r   zOpset11.LogSoftmaxI_LoopB_LoopV_LoopMOptional[I_Loop]Optional[B_Loop]	v_initialbodyc                G  s8   t ddd}t| d|}|| j|||g|R  d|iS )u  [🌐 Loop(11)](https://onnx.ai/onnx/operators/onnx__Loop.html#loop-11 "Online Documentation")


        Generic Looping construct. This loop has multiple termination conditions:

        1) Trip count. Iteration count specified at runtime. Set by
           specifying the input M. Optional. Set to empty string to omit.
           Note that a static trip count (specified at graph construction time) can be
           specified by passing in a constant node for input M.
        2) Loop termination condition. This is an input to the op that determines
           whether to run the first iteration and also a loop-carried dependency for
           the body graph. The body graph must yield a value for the condition variable,
           whether this input is provided or not.

        This table summarizes the operating modes of this operator with equivalent
        C-style code:

        Operator inputs defined as (max_trip_count, condition_var).

            input ("", ""):
                for (int i=0; ; ++i) {
                  cond = ... // Note this value is ignored, but is required in the body
                }

            input ("", cond) // Note this is analogous to a while loop
                bool cond = ...;
                for (int i=0; cond; ++i) {
                  cond = ...;
                }

            input ("", 1) // Note this is analogous to a do-while loop
                bool cond = true
                for (int i=0; cond; ++i) {
                  cond = ...;
                }

            input (trip_count, "") // Note this is analogous to a for loop
                int trip_count = ...
                for (int i=0; i < trip_count; ++i) {
                  cond = ...; // ignored
                }

            input (trip_count, cond)
                int trip_count = ...;
                bool cond = ...;
                for (int i=0; i < trip_count && cond; ++i) {
                  cond = ...;
                }


        *Sample usage - cond as well as trip count*

            graph predict-net {
              %a = Constant[value = <Scalar Tensor [3]>]()
              %b = Constant[value = <Scalar Tensor [6]>]()
              %keepgoing = Constant[value = <Scalar Tensor [1]>]()
              %max_trip_count = Constant[value = <Scalar Tensor [10]>]()
              %keepgoing_out, %b_out, %user_defined_vals = Loop[body = <graph body-net>](%max_trip_count, %keepgoing, %b)
              return
            }

            graph body-net (
              %i[INT32, scalar]           // iteration number
              %keepgoing_in[BOOL, scalar] // incoming loop-termination-condition; not used
              %b_in[INT32, scalar]        // incoming value of loop-carried-dependency b
            ) {
              %my_local = Add(%a, %b_in)
              %b_out = Sub(%a, %b_in) // outgoing value of loop-carried-dependency b
              %keepgoing_out = Greater(%my_local, %b_out) // outgoing loop-termination-condition
              %user_defined_val = Add(%b_in, %b_in) // scan-output value to be accumulated
              return %keepgoing_out, %b_out, %user_defined_val
            }

        *Sample equivalent C code*

            {
              /* User-defined code (enclosing scope) */
              int a = 3, b = 6;
              bool keepgoing = true; // Analogous to input cond
              /* End user-defined code */

              /* Implicitly-defined code */
              const int max_trip_count = 10; // Analogous to input M
              int user_defined_vals[]; // Imagine this is resizable
              /* End implicitly-defined code */
              /* initialize loop-carried variables and scan-output variables */
              bool keepgoing_out = keepgoing
              int b_out = b

              for (int i=0; i < max_trip_count && keepgoing_out; ++i) {
                /* Implicitly-defined code: bind actual parameter values
                   to formal parameter variables of loop-body */
                bool keepgoing_in = keepgoing_out;
                bool b_in = b_out;

                /* User-defined code (loop body) */
                int my_local = a + b_in; // Reading value "a" from the enclosing scope is fine
                b_out = a - b_in;
                keepgoing_out = my_local > b_out;
                user_defined_val = b_in + b_in; // b_in and b_out are different variables
                /* End user-defined code */

                /* Implicitly defined-code */
                user_defined_vals[i] = user_defined_val // accumulate scan-output values
              }
              // int t = my_local; // Can't do this. my_local is not accessible here.

              // The values below are bound to the output variables of the loop and therefore accessible
              // b_out; user_defined_vals; keepgoing_out;
            }

        There are several things of note in this code snippet:

        1) Values from the enclosing scope (i.e. variable "a" here) are in scope and can
           be referenced in the inputs of the loop.
        2) Any values computed in the loop body that needs to be used in a subsequent
           iteration or after the loop are modelled using a pair of variables in the loop-body,
           consisting of an input variable (eg., b_in) and an output variable (eg., b_out).
           These are referred to as loop-carried dependences. The loop operation node
           supplies the input value of the input variable for the first iteration, and
           returns the output value of the output variable produced by the final
           iteration.
        3) Scan_output variables are used to implicitly concatenate values computed across
           all the iterations. In the above example, the value of user_defined_val computed
           over all iterations are concatenated and returned as the value of user_defined_vals
           after the loop.
        4) Values created in the body cannot be accessed in the enclosing scope,
           except using the mechanism described above.

        Note that the semantics of this op support "diagonal" or "wavefront" execution.
        (See Step 3 here for an example:
        https://devblogs.nvidia.com/optimizing-recurrent-neural-networks-cudnn-5/).
        Frontends should emit multi-layer RNNs as a series of While operators (with
        time being the inner looping dimension), with each successive layer consuming
        the scan_outputs from the previous layer, possibly going through several
        point-wise operators (e.g. dropout, residual connections, linear layer).


        Args:
            M: (optional) A maximum trip-count for the loop specified at runtime.
                Optional. Pass empty string to skip.

            cond: (optional) A boolean termination condition. Optional. Pass empty
                string to skip.

            v_initial: (variadic, heterogeneous) The initial values of any loop-carried
                dependencies (values that change across loop iterations)

            body: The graph run each iteration. It has 2+N inputs: (iteration_num,
                condition, loop carried dependencies...). It has 1+N+K outputs:
                (condition, loop carried dependencies..., scan_outputs...). Each
                scan_output is created by concatenating the value of the specified
                output value at the end of each iteration of the loop. It is an error if
                the dimensions or data type of these scan_outputs change across loop
                iterations.
        Loopr!   r    r   r0   )r3   r   r   r   r   r4   r5   r$   r$   r%   r     s    % zOpset11.LoopT_LpPool   )r;   pr>   r?   r   c          	      C  s6   t ddd}t| d|}|| |||||||dS )u	  [🌐 LpPool(11)](https://onnx.ai/onnx/operators/onnx__LpPool.html#lppool-11 "Online Documentation")


         LpPool consumes an input tensor X and applies Lp pooling across
         the tensor according to kernel sizes, stride sizes, and pad lengths.
         Lp pooling consisting of computing the Lp norm on all values of a subset
         of the input tensor according to the kernel size and downsampling the
         data into the output tensor Y for further processing.

        Args:
            X: (differentiable) Input data tensor from the previous operator; dimensions
                for image case are (N x C x H x W), where N is the batch size, C is the
                number of channels, and H and W are the height and the width of the
                data. For non image case, the dimensions are in the form of (N x C x D1
                x D2 ... Dn), where N is the batch size.

            auto_pad: auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID.
                Where default value is NOTSET, which means explicit padding is used.
                SAME_UPPER or SAME_LOWER mean pad the input so that `output_shape[i] =
                ceil(input_shape[i] / strides[i])` for each axis `i`. The padding is
                split between the two sides equally or almost equally (depending on
                whether it is even or odd). In case the padding is an odd number, the
                extra padding is added at the end for SAME_UPPER and at the beginning
                for SAME_LOWER.

            kernel_shape: The size of the kernel along each axis.

            p: p value of the Lp norm used to pool over the input data.

            pads: Padding for the beginning and ending along each spatial axis, it can
                take any value greater than or equal to 0. The value represent the
                number of pixels added to the beginning and end part of the
                corresponding axis. `pads` format should be as follow [x1_begin,
                x2_begin...x1_end, x2_end,...], where xi_begin the number of pixels
                added at the beginning of axis `i` and xi_end, the number of pixels
                added at the end of axis `i`. This attribute cannot be used
                simultaneously with auto_pad attribute. If not present, the padding
                defaults to 0 along start and end of each spatial axis.

            strides: Stride along each spatial axis. If not present, the stride defaults
                to 1 along each spatial axis.
        LpPoolr!   r    )r;   rB   r   r>   r?   r0   )	r3   r@   r;   rB   r   r>   r?   r4   r5   r$   r$   r%   r   d  s   5
zOpset11.LpPool	T_MaxPool	I_MaxPool)r;   r<   rj   r>   storage_orderr?   r   Tuple[T_MaxPool, I_MaxPool]c             
   C  s:   t ddd}	t| d|	}
|
| |	||||||||dS )u  [🌐 MaxPool(11)](https://onnx.ai/onnx/operators/onnx__MaxPool.html#maxpool-11 "Online Documentation")


         MaxPool consumes an input tensor X and applies max pooling across
         the tensor according to kernel sizes, stride sizes, and pad lengths.
         max pooling consisting of computing the max on all values of a
         subset of the input tensor according to the kernel size and downsampling the
         data into the output tensor Y for further processing. The output spatial shape will be following:
         ```
         output_spatial_shape[i] = floor((input_spatial_shape[i] + pad_shape[i] - ((kernel_spatial_shape[i] - 1) * dilations[i] + 1)) / strides_spatial_shape[i] + 1)
         ```
         or
         ```
         output_spatial_shape[i] = ceil((input_spatial_shape[i] + pad_shape[i] - ((kernel_spatial_shape[i] - 1) * dilations[i] + 1)) / strides_spatial_shape[i] + 1)
         ```
         if ceil_mode is enabled

         ```
         * pad_shape[i] is sum of pads along axis i
         ```

         `auto_pad` is a DEPRECATED attribute. If you are using them currently, the output spatial shape will be following:
         ```
         VALID: output_spatial_shape[i] = ceil((input_spatial_shape[i] - ((kernel_spatial_shape[i] - 1) * dilations[i] + 1) + 1) / strides_spatial_shape[i])
         SAME_UPPER or SAME_LOWER: output_spatial_shape[i] = ceil(input_spatial_shape[i] / strides_spatial_shape[i])
         ```
         And pad shape will be following if `SAME_UPPER` or `SAME_LOWER`:
         ```
         pad_shape[i] = (output_spatial_shape[i] - 1) * strides_spatial_shape[i] + ((kernel_spatial_shape[i] - 1) * dilations[i] + 1) - input_spatial_shape[i]
         ```
         The output of each pooling window is maximum number of elements exclude pad.


        Args:
            X: Input data tensor from the previous operator; dimensions for image case
                are (N x C x H x W), where N is the batch size, C is the number of
                channels, and H and W are the height and the width of the data. For non
                image case, the dimensions are in the form of (N x C x D1 x D2 ... Dn),
                where N is the batch size. Optionally, if dimension denotation is in
                effect, the operation expects the input data tensor to arrive with the
                dimension denotation of [DATA_BATCH, DATA_CHANNEL, DATA_FEATURE,
                DATA_FEATURE ...].

            auto_pad: auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID.
                Where default value is NOTSET, which means explicit padding is used.
                SAME_UPPER or SAME_LOWER mean pad the input so that the output spatial
                size match the input.In case of odd number add the extra padding at the
                end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no
                padding.

            ceil_mode: Whether to use ceil or floor (default) to compute the output
                shape.

            dilations: Dilation value along each spatial axis of filter. If not present,
                the dilation defaults to 1 along each spatial axis.

            kernel_shape: The size of the kernel along each axis.

            pads: Padding for the beginning and ending along each spatial axis, it can
                take any value greater than or equal to 0. The value represent the
                number of pixels added to the beginning and end part of the
                corresponding axis. `pads` format should be as follow [x1_begin,
                x2_begin...x1_end, x2_end,...], where xi_begin the number of pixels
                added at the beginning of axis `i` and xi_end, the number of pixels
                added at the end of axis `i`. This attribute cannot be used
                simultaneously with auto_pad attribute. If not present, the padding
                defaults to 0 along start and end of each spatial axis.

            storage_order: The storage order of the tensor. 0 is row major, and 1 is
                column major.

            strides: Stride along each spatial axis. If not present, the stride defaults
                to 1 along each spatial axis.
        MaxPoolr!   r    )r;   r<   rj   rB   r>   r   r?   r0   )r3   r@   r;   r<   rj   rB   r>   r   r?   r4   r5   r$   r$   r%   r     s   W
zOpset11.MaxPoolT1_MaxUnpoolT2_MaxUnpool)r>   r?   IOptional[T2_MaxUnpool]c          	      C  s6   t ddd}t| d|}|| |||||||dS )u  [🌐 MaxUnpool(11)](https://onnx.ai/onnx/operators/onnx__MaxUnpool.html#maxunpool-11 "Online Documentation")


        MaxUnpool essentially computes the partial inverse of the MaxPool op.
         The input information to this op is typically the output information from a MaxPool op. The first
         input tensor X is the tensor that needs to be unpooled, which is typically the pooled tensor (first output)
         from MaxPool. The second input tensor, I, contains the indices to the (locally maximal) elements corresponding
         to the elements in the first input tensor X. Input tensor I is typically the second output of the MaxPool op.
         The third (optional) input is a tensor that specifies the output size of the unpooling operation.

        MaxUnpool is intended to do 'partial' inverse of the MaxPool op. 'Partial' because all the non-maximal
         values from the original input to MaxPool are set to zero in the output of the MaxUnpool op. Pooling
         the result of an unpooling operation should give back the original input to the unpooling op.

        MaxUnpool can produce the same output size for several input sizes, which makes unpooling op ambiguous.
         The third input argument, output_size, is meant to disambiguate the op and produce output tensor of
         known/predictable size.

        In addition to the inputs, MaxUnpool takes three attributes, namely kernel_shape, strides, and pads,
         which define the exact unpooling op. The attributes typically have the same values as the corresponding
         pooling op that the unpooling op is trying to invert.


        Args:
            X: (differentiable) Input data tensor that has to be unpooled. This tensor
                is typically the first output of the MaxPool op.Dimensions for image
                case are (N x C x H x W), where N is the batch size, C is the number of
                channels, and H and W are the height and the width of the data. For
                non-image case, the dimensions are in the form of (N x C x D1 x D2 ...
                Dn), where N is the batch size. Optionally, if dimension denotation is
                in effect, the operation expects the input data tensor to arrive with
                the dimension denotation of [DATA_BATCH, DATA_CHANNEL, DATA_FEATURE,
                DATA_FEATURE ...].

            I: (non-differentiable) Input data tensor containing the indices
                corresponding to elements in the first input tensor X.This tensor is
                typically the second output of the MaxPool op.Dimensions must be the
                same as input tensor X. The indices are linear, i.e. computed
                considering the tensor as flattened 1-D tensor, assuming row-major
                storage. Also, the linear indices should not consider padding. So the
                values in indices are in the range [0, N x C x D1 x ... x Dn).

            output_shape: (optional, non-differentiable) The shape of the output can be
                explicitly set which will cause pads values to be auto generated. If
                'output_shape' is specified, 'pads' values are ignored.

            kernel_shape: The size of the kernel along each axis.

            pads: Padding for the beginning and ending along each spatial axis, it can
                take any value greater than or equal to 0. The value represent the
                number of pixels added to the beginning and end part of the
                corresponding axis. `pads` format should be as follow [x1_begin,
                x2_begin...x1_end, x2_end,...], where xi_begin the number of pixels
                added at the beginning of axis `i` and xi_end, the number of pixels
                added at the end of axis `i`. This attribute cannot be used
                simultaneously with auto_pad attribute. If not present, the padding
                defaults to 0 along start and end of each spatial axis.

            strides: Stride along each spatial axis. If not present, the stride defaults
                to 1 along each spatial axis.
        	MaxUnpoolr!   r    )rB   r>   r?   r0   )	r3   r@   r   rs   rB   r>   r?   r4   r5   r$   r$   r%   r     s   HzOpset11.MaxUnpool)center_point_boxboxesr   scoresmax_output_boxes_per_classOptional[INT64]iou_thresholdOptional[FLOAT]score_thresholdr   c          	   	   C  s6   t ddd}t| d|}|| ||||||d|iS )u	  [🌐 NonMaxSuppression(11)](https://onnx.ai/onnx/operators/onnx__NonMaxSuppression.html#nonmaxsuppression-11 "Online Documentation")


        Filter out boxes that have high intersection-over-union (IOU) overlap with previously selected boxes.
        Bounding boxes with score less than score_threshold are removed. Bounding box format is indicated by attribute center_point_box.
        Note that this algorithm is agnostic to where the origin is in the coordinate system and more generally is invariant to
        orthogonal transformations and translations of the coordinate system; thus translating or reflections of the coordinate system
        result in the same boxes being selected by the algorithm.
        The selected_indices output is a set of integers indexing into the input collection of bounding boxes representing the selected boxes.
        The bounding box coordinates corresponding to the selected indices can then be obtained using the Gather or GatherND operation.


        Args:
            boxes: An input tensor with shape [num_batches, spatial_dimension, 4]. The
                single box data format is indicated by center_point_box.

            scores: An input tensor with shape [num_batches, num_classes,
                spatial_dimension]

            max_output_boxes_per_class: (optional) Integer representing the maximum
                number of boxes to be selected per batch per class. It is a scalar.
                Default to 0, which means no output.

            iou_threshold: (optional) Float representing the threshold for deciding
                whether boxes overlap too much with respect to IOU. It is scalar. Value
                range [0, 1]. Default to 0.

            score_threshold: (optional) Float representing the threshold for deciding
                when to remove boxes based on score. It is a scalar.

            center_point_box: Integer indicate the format of the box data. The default
                is 0. 0 - the box data is supplied as [y1, x1, y2, x2] where (y1, x1)
                and (y2, x2) are the coordinates of any diagonal pair of box corners and
                the coordinates can be provided as normalized (i.e., lying in the
                interval [0, 1]) or absolute. Mostly used for TF models. 1 - the box
                data is supplied as [x_center, y_center, width, height]. Mostly used for
                Pytorch models.
        NonMaxSuppressionr!   r    r   r0   )	r3   r   r   r   r   r   r   r4   r5   r$   r$   r%   r   a  s   1	zOpset11.NonMaxSuppression	T1_OneHot	T2_OneHot	T3_OneHotdepthvaluesc                C  2   t ddd}t| d|}|| ||||d|iS )u  [🌐 OneHot(11)](https://onnx.ai/onnx/operators/onnx__OneHot.html#onehot-11 "Online Documentation")


            Produces a one-hot tensor based on inputs.
            The locations represented by the index values in the 'indices' input tensor will have 'on_value'
            and the other locations will have 'off_value' in the output tensor, where 'on_value' and 'off_value'
            are specified as part of required input argument 'values', which is a two-element tensor of format
            [off_value, on_value]. The rank of the output tensor will be one greater than the rank of the
            input tensor. The additional dimension is for one-hot representation. The additional dimension will
            be inserted at the position specified by 'axis'. If 'axis' is not specified then then additional
            dimension will be inserted as the innermost dimension, i.e. axis=-1. The size of the additional
            dimension is specified by required scalar input 'depth'. The type of the output tensor is the same
            as the type of the 'values' input. Any entries in the 'indices' input tensor with values outside
            the range [-depth, depth-1] will result in one-hot representation with all 'off_value' values in the
            output tensor.

            when axis = 0:
            output[input[i, j, k], i, j, k] = 1 for all i, j, k and 0 otherwise.

            when axis = -1:
            output[i, j, k, input[i, j, k]] = 1 for all i, j, k and 0 otherwise.



        Args:
            indices: (non-differentiable) Input tensor containing indices. Any entries
                in the 'indices' input tensor with values outside the range [-depth,
                depth-1] will result in one-hot representation with all 'off_value'
                values in the output tensor.In case 'indices' is of non-integer type,
                the values will be casted to int64 before use.

            depth: (non-differentiable) Scalar or Rank 1 tensor containing exactly one
                element, specifying the number of classes in one-hot tensor. This is
                also the size of the one-hot dimension (specified by 'axis' attribute)
                added on in the output tensor. The values in the 'indices' input tensor
                are expected to be in the range [-depth, depth-1]. In case 'depth' is of
                non-integer type, it will be casted to int64 before use.

            values: (non-differentiable) Rank 1 tensor containing exactly two elements,
                in the format [off_value, on_value], where 'on_value' is the value used
                for filling locations specified in 'indices' input tensor, and
                'off_value' is the value used for filling locations other than those
                specified in 'indices' input tensor.

            axis: (Optional) Axis along which one-hot representation in added. Default:
                axis=-1. axis=-1 means that the additional dimension will be inserted as
                the innermost/last dimension in the output tensor. Negative value means
                counting dimensions from the back. Accepted range is [-r-1, r] where r =
                rank(indices).
        OneHotr!   r    r)   r0   )r3   r   r   r   r)   r4   r5   r$   r$   r%   r     s   6zOpset11.OneHotT_Padconstantconstant_valueOptional[T_Pad]c                C  r   )u
  [🌐 Pad(11)](https://onnx.ai/onnx/operators/onnx__Pad.html#pad-11 "Online Documentation")


        Given a tensor containing the data to be padded (`data`), a tensor containing the number of start and end pad values for axis (`pads`), (optionally) a `mode`, and (optionally) `constant_value`,
        a padded tensor (`output`) is generated.

        The three supported `modes` are (similar to corresponding modes supported by `numpy.pad`):

        1) `constant`(default) - pads with a given constant value as specified by `constant_value` (which defaults to 0)

        2) `reflect` - pads with the reflection of the vector mirrored on the first and last values of the vector along each axis

        3) `edge` - pads with the edge values of array


        Example 1 (`constant` mode):
          Insert 0 pads to the beginning of the second dimension.

          data =
          [
              [1.0, 1.2],
              [2.3, 3.4],
              [4.5, 5.7],
          ]

          pads = [0, 2, 0, 0]

          mode = 'constant'

          constant_value = 0.0

          output =
          [
              [0.0, 0.0, 1.0, 1.2],
              [0.0, 0.0, 2.3, 3.4],
              [0.0, 0.0, 4.5, 5.7],
          ]


        Example 2 (`reflect` mode):
          data =
          [
              [1.0, 1.2],
              [2.3, 3.4],
              [4.5, 5.7],
          ]

          pads = [0, 2, 0, 0]

          mode = 'reflect'

          output =
          [
              [1.0, 1.2, 1.0, 1.2],
              [2.3, 3.4, 2.3, 3.4],
              [4.5, 5.7, 4.5, 5.7],
          ]


        Example 3 (`edge` mode):
          data =
          [
              [1.0, 1.2],
              [2.3, 3.4],
              [4.5, 5.7],
          ]

          pads = [0, 2, 0, 0]

          mode = 'edge'

          output =
          [
              [1.0, 1.0, 1.0, 1.2],
              [2.3, 2.3, 2.3, 3.4],
              [4.5, 4.5, 4.5, 5.7],
          ]



        Args:
            data: Input tensor.

            pads: Tensor of integers indicating the number of padding elements to add or
                remove (if negative) at the beginning and end of each axis. For 2D input
                tensor, it is the number of pixels. `pads` should be a 1D tensor of
                shape [2 * input_rank]. `pads` format should be: [x1_begin,
                x2_begin,...,x1_end, x2_end,...], where xi_begin is the number of pad
                values added at the beginning of axis `i` and xi_end, the number of pad
                values added at the end of axis `i`.

            constant_value: (optional) (Optional) A scalar value to be used if the mode
                chosen is `constant` (by default it is 0).

            mode: Supported modes: `constant`(default), `reflect`, `edge`
        Padr!   r    r   r0   )r3   r+   r>   r   r   r4   r5   r$   r$   r%   r     s   izOpset11.PadT_Rangestartlimitdeltac                 C  rQ   )u>  [🌐 Range(11)](https://onnx.ai/onnx/operators/onnx__Range.html#range-11 "Online Documentation")


        Generate a tensor containing a sequence of numbers that begin at `start` and extends by increments of `delta`
        up to `limit` (exclusive).

        The number of elements in the output of range is computed as below:

        ::

            number_of_elements = max( ceil( (limit - start) / delta ) , 0 )



        The pseudocode determining the contents of the output is shown below:

        ::

            for(int i=0; i<number_of_elements; ++i) {
              output[i] =  start + (i * delta);
            }



        Example 1

        ::

            Inputs: start = 3, limit = 9, delta = 3
            Output: [3, 6]



        Example 2

        ::

            Inputs: start = 10, limit = 4, delta = -2
            Output: [10, 8, 6]




        Args:
            start: Scalar. First entry for the range of output values.

            limit: Scalar. Exclusive upper limit for the range of output values.

            delta: Scalar. Value to step by.
        Ranger!   r    r0   )r3   r   r   r   r4   r5   r$   r$   r%   r     s   4zOpset11.Range
T_ReduceL1axesr*   r   c                C  r.   )uq  [🌐 ReduceL1(11)](https://onnx.ai/onnx/operators/onnx__ReduceL1.html#reducel1-11 "Online Documentation")


        Computes the L1 norm of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        ReduceL1r!   r    r   r0   r3   r+   r   r*   r4   r5   r$   r$   r%   r        zOpset11.ReduceL1
T_ReduceL2c                C  r.   )uq  [🌐 ReduceL2(11)](https://onnx.ai/onnx/operators/onnx__ReduceL2.html#reducel2-11 "Online Documentation")


        Computes the L2 norm of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        ReduceL2r!   r    r   r0   r   r$   r$   r%   r     r   zOpset11.ReduceL2T_ReduceLogSumc                C  r.   )u}  [🌐 ReduceLogSum(11)](https://onnx.ai/onnx/operators/onnx__ReduceLogSum.html#reducelogsum-11 "Online Documentation")


        Computes the log sum of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        ReduceLogSumr!   r    r   r0   r   r$   r$   r%   r   		  r   zOpset11.ReduceLogSumT_ReduceLogSumExpc                C  r.   )u  [🌐 ReduceLogSumExp(11)](https://onnx.ai/onnx/operators/onnx__ReduceLogSumExp.html#reducelogsumexp-11 "Online Documentation")


        Computes the log sum exponent of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        ReduceLogSumExpr!   r    r   r0   r   r$   r$   r%   r   -	  r   zOpset11.ReduceLogSumExpT_ReduceMaxc                C  r.   )u*  [🌐 ReduceMax(11)](https://onnx.ai/onnx/operators/onnx__ReduceMax.html#reducemax-11 "Online Documentation")


        Computes the max of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned. Input tensors of rank zero are
        valid. Reduction over an empty set of values yields minus infinity (if supported by the datatype) or the minimum value of the data type otherwise.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        	ReduceMaxr!   r    r   r0   r   r$   r$   r%   r   O	     zOpset11.ReduceMaxT_ReduceMeanc                C  r.   )ut  [🌐 ReduceMean(11)](https://onnx.ai/onnx/operators/onnx__ReduceMean.html#reducemean-11 "Online Documentation")


        Computes the mean of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        
ReduceMeanr!   r    r   r0   r   r$   r$   r%   r   t	  r   zOpset11.ReduceMeanT_ReduceMinc                C  r.   )u)  [🌐 ReduceMin(11)](https://onnx.ai/onnx/operators/onnx__ReduceMin.html#reducemin-11 "Online Documentation")


        Computes the min of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned. Input tensors of rank zero are
        valid. Reduction over an empty set of values yields plus infinity (if supported by the datatype) or the maximum value of the data type otherwise.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        	ReduceMinr!   r    r   r0   r   r$   r$   r%   r   	  r   zOpset11.ReduceMinT_ReduceProdc                C  r.   )uw  [🌐 ReduceProd(11)](https://onnx.ai/onnx/operators/onnx__ReduceProd.html#reduceprod-11 "Online Documentation")


        Computes the product of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        
ReduceProdr!   r    r   r0   r   r$   r$   r%   r   	  r   zOpset11.ReduceProdT_ReduceSumc                C  r.   )up  [🌐 ReduceSum(11)](https://onnx.ai/onnx/operators/onnx__ReduceSum.html#reducesum-11 "Online Documentation")


        Computes the sum of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        	ReduceSumr!   r    r   r0   r   r$   r$   r%   r   	  r   zOpset11.ReduceSumT_ReduceSumSquarec                C  r.   )u  [🌐 ReduceSumSquare(11)](https://onnx.ai/onnx/operators/onnx__ReduceSumSquare.html#reducesumsquare-11 "Online Documentation")


        Computes the sum square of the input tensor's element along the provided axes. The resulting
        tensor has the same rank as the input if keepdims equals 1. If keepdims equal 0, then
        the resulted tensor have the reduced dimension pruned.

        The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
        False instead of True.

        Args:
            data: An input tensor.

            axes: A list of integers, along which to reduce. The default is to reduce
                over all the dimensions of the input tensor. Accepted range is [-r, r-1]
                where r = rank(data).

            keepdims: Keep the reduced dimension or not, default 1 means keep reduced
                dimension.
        ReduceSumSquarer!   r    r   r0   r   r$   r$   r%   r   
  r   zOpset11.ReduceSumSquare	T1_Resize	T2_Resize
half_pixelg      g        nearestround_prefer_floorcoordinate_transformation_modecubic_coeff_aexclude_outsideextrapolation_valuer   nearest_moderoiscalessizesr  r  r  r  r  c             	   C  s>   t ddd}t| d|}|| ||||||||||	|
dS )u  [🌐 Resize(11)](https://onnx.ai/onnx/operators/onnx__Resize.html#resize-11 "Online Documentation")


        Resize the input tensor. In general, it calculates every value in the output tensor as a weighted average of neighborhood (a.k.a. sampling locations) in the input tensor.
        Each dimension value of the output tensor is:
          output_dimension = floor(input_dimension * (roi_end - roi_start) * scale) if input \"sizes\" is not specified.


        Args:
            X: N-D tensor

            roi: 1-D tensor given as [start1, ..., startN, end1, ..., endN], where N is
                the rank of X. The RoIs' coordinates are normalized in the coordinate
                system of the input image. It only takes effect when
                coordinate_transformation_mode is "tf_crop_and_resize"

            scales: The scale array along each dimension. It takes value greater than 0.
                If it's less than 1, it's sampling down, otherwise, it's upsampling. The
                number of elements of 'scales' should be the same as the rank of input
                'X'. If 'size' is needed, the user must set 'scales' to an empty tensor.

            sizes: (optional) The size of the output tensor. The number of elements of
                'sizes' should be the same as the rank of input 'X'. May only be set if
                'scales' is set to an empty tensor.

            coordinate_transformation_mode:
        This attribute describes how to transform
                the coordinate in the resized tensor to the coordinate in the original
                tensor. <br/>

        The coordinate of each dimension is transformed
                individually. Let's describe a case using axis x as an example.
        Denote
                x_resized as the coordinate of axis x in the resized tensor, x_original
                as the coordinate of axis x in the original tensor, length_original as
                the length of the original tensor in axis x, length_resized as the
                length of the resized tensor in axis x, roi_x = (start_x, end_x) of the
                axis x in input "roi", scale = length_resized / length_original, <br/>
                if coordinate_transformation_mode is "half_pixel", <br/>
        x_original =
                (x_resized + 0.5) / scale - 0.5, <br/>

        if
                coordinate_transformation_mode is "pytorch_half_pixel", <br/>
        x_original
                = length_resized > 1 ? (x_resized + 0.5) / scale - 0.5 : 0, <br/>

        if
                coordinate_transformation_mode is "align_corners", <br/>
        x_original =
                x_resized * (length_original - 1) / (length_resized - 1), <br/>

        if
                coordinate_transformation_mode is "asymmetric", <br/>
        x_original =
                x_resized / scale, <br/>

        if coordinate_transformation_mode is
                "tf_half_pixel_for_nn", <br/>
        x_original = (x_resized + 0.5) / scale,
                <br/>

        if coordinate_transformation_mode is "tf_crop_and_resize", <br/>
                x_original = length_resized > 1 ? start_x * (length_original - 1) +
                x_resized * (end_x - start_x) * (length_original - 1) / (length_resized
                - 1) : 0.5 * (start_x + end_x) * (length_original - 1).

            cubic_coeff_a: The coefficient 'a' used in cubic interpolation. Two common
                choice are -0.5 (in some cases of TensorFlow) and -0.75 (in PyTorch).
                Check out Equation (4) in https://ieeexplore.ieee.org/document/1163711
                for the details. This attribute is valid only if "mode" is "cubic".

            exclude_outside: If set to 1, the weight of sampling locations outside the
                tensor will be set to 0 and the weight will be renormalized so that
                their sum is 1.0. The default value is 0.

            extrapolation_value: When coordinate_transformation_mode is
                "tf_crop_and_resize" and x_original is outside the range [0,
                length_original - 1], this value is used as the corresponding output
                value. Default is 0.0f.

            mode: Three interpolation modes: nearest (default), linear and cubic. The
                "linear" mode includes linear interpolation for 1D tensor and N-linear
                interpolation for N-D tensor (for example, bilinear interpolation for 2D
                tensor). The "cubic" mode includes cubic interpolation for 1D tensor and
                N-cubic interpolation for N-D tensor (for example, bicubic interpolation
                for 2D tensor).

            nearest_mode: Four modes: round_prefer_floor (default, as known as round
                half down), round_prefer_ceil (as known as round half up), floor, ceil.
                Only used by nearest interpolation. It indicates how to get "nearest"
                pixel in input tensor from x_original, so this attribute is valid only
                if "mode" is "nearest".
        Resizer!   r    r  r0   )r3   r@   r	  r
  r  r  r  r  r  r   r  r4   r5   r$   r$   r%   r  6
  s   mzOpset11.ResizeT_Roundc                 C  r   )u  [🌐 Round(11)](https://onnx.ai/onnx/operators/onnx__Round.html#round-11 "Online Documentation")


        Round takes one input Tensor and rounds the values, element-wise, meaning
        it finds the nearest integer for each value.
        In case of halves, the rule is to round them to the nearest even integer.
        If input x is integral, +0, -0, NaN,  or infinite, x itself is returned.
        The output tensor has the same shape and type as the input.

        Examples:
        ::

            round([0.9]) = [1.0]
            round([2.5]) = [2.0]
            round([2.3]) = [2.0]
            round([1.5]) = [2.0]
            round([-4.5]) = [-4.0]




        Args:
            X: (non-differentiable) Input tensor
        Roundr!   r    r0   r   r$   r$   r%   r  
  s   zOpset11.RoundV_Scan)scan_input_axesscan_input_directionsscan_output_axesscan_output_directionsinitial_state_and_scan_inputsnum_scan_inputsr  r  r  r  c          
   	   G  s>   t ddd}t| d|}	|	| j|g|R  ||||||dS )u'$  [🌐 Scan(11)](https://onnx.ai/onnx/operators/onnx__Scan.html#scan-11 "Online Documentation")


        Scan can be used to iterate over one or more scan_input tensors,
        constructing zero or more scan_output tensors. It combines ideas from general recurrences,
        functional programming constructs such as scan, fold, map, and zip, and is intended to enable
        generalizations of RNN-like constructs for sequence-to-sequence processing.
        Other tensors (referred to as state_variables here) can be used to carry a state
        when iterating from one element to another (similar to hidden-state in RNNs, also referred
        to as loop-carried dependences in the context of loops).
        Many common usages involve a single scan_input tensor (where functionality
        similar to scan, fold and map can be obtained). When more than one scan_input is used,
        a behavior similar to zip is obtained.

        The attribute body must be a graph, specifying the computation to be performed in
        every iteration. It takes as input the current values of the state_variables and
        the current iterated element of the scan_inputs. It must return the (updated) values
        of the state_variables and zero or more scan_output_element tensors. The values of the
        scan_output_element tensors are concatenated over all the iterations to produce the
        scan_output values of the scan construct (similar to the concatenated intermediate
        hidden-state values of RNN-like constructs). All the output tensors (state_variables as
        well as scan_output_element tensors) are required to have the same shape in each iteration
        of the loop (a restriction imposed to enable efficient memory allocation).

        Note that the iterated element passed to the body subgraph does not have a sequence
        axis. It will have a rank one less than the rank of the corresponding scan_input.

        The scan operation returns the final values of the state_variables as well as the
        scan_outputs.

        The optional attribute scan_input_directions specifies the direction (forward or backward)
        for each scan input. If this attribute is omitted, all sequences are scanned in the forward
        direction. A bidirectional scan may be performed by specifying the same tensor input twice
        in the scan_inputs, once with a forward direction, and once with a backward direction.

        The scan_output of the operation is produced by concatenating the scan_output_element
        values produced by the body in each iteration.  The optional attribute scan_output_directions
        specifies the direction in which scan_output is constructed (by appending or prepending the
        scan_output_element to scan_output in each iteration) for each scan_output. If this attribute
        is omitted, the scan_output_element is appended to the scan_output in each iteration.

        The optional attribute scan_input_axes specifies the axis to be scanned for each scan_input.
        If omitted, every scan_input will be scanned in axis 0. For example, if axis 0 is the
        batch axis and axis 1 is the time axis (to be scanned), specify an axis value of 1.
        Note that scanning a non-zero axis may be less efficient than scanning axis zero.

        The optional attribute scan_output_axes specifies the axis along which the scan_outputs
        are accumulated for each scan_output. For example, if axis 1 is the time axis (to be
        scanned) for both inputs and outputs, specify a scan_input axis and scan_output axis
        value of 1.

        Note that because of the ONNX restriction that only the last parameter of an operator can
        be variadic, the initial-states and scan-inputs are listed together as one input parameter.
        Similarly, the final-states and scan-outputs are listed together as one output parameter.
        The attribute num_scan_inputs indicates the number M of scan-inputs.

        The behavior of

            Scan <
                num_scan_inputs = m,
                body = loop-body,
                scan_input_axes = [axis_1, ..., axis_m]
            > (init_1, ..., init_n, scan_1, ..., scan_m)

        is equivalent to the following pseudo-code:

            // scan_i.shape[axis_i] denotes the (max) sequence-length of scan_i
            // scan_i.shape[axis_i] is required to be equal to scan_j.shape[axis_j] for all i,j.
            sequence_length = scan_1.shape[axis_1];

            // initialize state-variables
            st_1 = init_1; ... st_n = init_n;
            // initialize scan-output variables: [] denotes an empty tensor
            scan_out_1 = []; ...; scan_out_k = [];
            // identify number of iterations:

            // execute loop
            for (int t = 0; t < sequence_length; ++t) {
                // generate the scan-input elements: the notation T<axis=k>[t] indicates the sub-tensor
                // of rank one less than T obtained by indexing T at position t along axis k.
                si_1 = scan_1<axis=axis_1>[t];
                ... ;
                si_m = scan_m<axis=axis_m>[t];
                // execute loop-body
                st_1, ..., st_n, so_1, ..., so_k = loop-body(st_1, ..., st_n, si_1, ..., si_m)
                // accumulate the scan-output elements
                scan_out_1 = Concat<axis=0>(scan_out_1, so_1); ... ; scan_out_k = Concat<axis=0>(scan_out_k, so_k);
            }

            return st_1, ..., st_n, scan_out_1, ..., scan_out_k;

        *Sample usage: Encoding RNN using a Scan*

        The following example shows how a simple RNN over an input tensor %X, with weight tensor %Wi,
        recurrence weight tensor %Ri, bias tensors %Wbi and %Rbi, and initial hidden-state %H_0 can
        be encoded as a ScanLoop. Note that the loop-body is a nested graph, and it directly computes
        %Wi, %Ri, %Wbi, and %Rbi (typically constants or initializers in the body graph). If these
        values are computed in the outer graph, they need to be passed in as extra state_variables.

            graph rnn-encoding {
              %H_0 = ...
              %X = ...
              %Y_h, %Y = Scan[body = <graph rnn-cell-1>, num_scan_inputs=1](%H_0, %X)
              return %Y, %Y_h
            }

            graph rnn-cell-1 (
              %H_tminus1[FLOAT, tensor]
              %X_t[FLOAT, tensor]
            ) {
              %Wi = ...
              %Ri = ...
              %Wbi = ...
              %Rbi = ...
              %t1 = X_t * (Wi^T)
              %t2 = H_tminus1*(Ri^T)
              %t3 = Add(%t1, %t2)
              %t4 = Add(%t3, %Wbi)
              %t5 = Add(%t4, %Rbi)
              %Ht = Tanh(%t5)
              %Accumulate = Identity(%Ht)
              return %Ht, %Accumulate
            }



        Args:
            initial_state_and_scan_inputs: (variadic, heterogeneous) Initial values of
                the loop's N state variables followed by M scan_inputs

            body: The graph run each iteration. It has N+M inputs: (loop state
                variables..., scan_input_elts...). It has N+K outputs: (loop state
                variables..., scan_output_elts...). Each scan_output is created by
                concatenating the value of the specified scan_output_elt value at the
                end of each iteration of the loop. It is an error if the dimensions of
                these values change across loop iterations.

            num_scan_inputs: An attribute specifying the number of scan_inputs M.

            scan_input_axes: An optional list of M flags. The i-th element of the list
                specifies the axis to be scanned (the sequence axis) for the i-th
                scan_input. If omitted, 0 will be used as the scan axis for every
                scan_input. Negative value for an axis means counting dimensions from
                the back. Accepted range is [-r, r-1] where r = rank(input).

            scan_input_directions: An optional list of M flags. The i-th element of the
                list specifies the direction to be scanned for the i-th scan_input
                tensor: 0 indicates forward direction and 1 indicates reverse direction.
                If omitted, all scan_input tensors will be scanned in the forward
                direction.

            scan_output_axes: An optional list of K flags. The i-th element of the list
                specifies the axis for the i-th scan_output. The scan outputs are
                accumulated along the specified axis. If omitted, 0 will be used as the
                scan axis for every scan_output. Negative value for an axis means
                counting dimensions from the back. Accepted range is [-r, r-1].

            scan_output_directions: An optional list of K flags, one for each
                scan_output. The i-th element of the list specifies whether the i-th
                scan_output should be constructed by appending or prepending a new value
                in each iteration: 0 indicates appending and 1 indicates prepending. If
                omitted, all scan_output tensors will be produced by appending a value
                in each iteration.
        Scanr!   r    )r   r  r  r  r  r  r0   )
r3   r   r  r  r  r  r  r  r4   r5   r$   r$   r%   r  
  s    0zOpset11.ScanT_ScatterElementsTind_ScatterElementsupdatesc                C  r   )u
  [🌐 ScatterElements(11)](https://onnx.ai/onnx/operators/onnx__ScatterElements.html#scatterelements-11 "Online Documentation")


        ScatterElements takes three inputs `data`, `updates`, and `indices` of the same
        rank r >= 1 and an optional attribute axis that identifies an axis of `data`
        (by default, the outer-most axis, that is axis 0). The output of the operation
        is produced by creating a copy of the input `data`, and then updating its value
        to values specified by `updates` at specific index positions specified by
        `indices`. Its output shape is the same as the shape of `data`.

        For each entry in `updates`, the target index in `data` is obtained by combining
        the corresponding entry in `indices` with the index of the entry itself: the
        index-value for dimension = axis is obtained from the value of the corresponding
        entry in `indices` and the index-value for dimension != axis is obtained from the
        index of the entry itself.

        For instance, in a 2-D tensor case, the update corresponding to the [i][j] entry
        is performed as below:
        ::

              output[indices[i][j]][j] = updates[i][j] if axis = 0,
              output[i][indices[i][j]] = updates[i][j] if axis = 1,



        This operator is the inverse of GatherElements. It is similar to Torch's Scatter operation.

        Example 1:
        ::

              data = [
                  [0.0, 0.0, 0.0],
                  [0.0, 0.0, 0.0],
                  [0.0, 0.0, 0.0],
              ]
              indices = [
                  [1, 0, 2],
                  [0, 2, 1],
              ]
              updates = [
                  [1.0, 1.1, 1.2],
                  [2.0, 2.1, 2.2],
              ]
              output = [
                  [2.0, 1.1, 0.0]
                  [1.0, 0.0, 2.2]
                  [0.0, 2.1, 1.2]
              ]


        Example 2:
        ::

              data = [[1.0, 2.0, 3.0, 4.0, 5.0]]
              indices = [[1, 3]]
              updates = [[1.1, 2.1]]
              axis = 1
              output = [[1.0, 1.1, 3.0, 2.1, 5.0]]




        Args:
            data: Tensor of rank r >= 1.

            indices: Tensor of int32/int64 indices, of r >= 1 (same rank as input). All
                index values are expected to be within bounds [-s, s-1] along axis of
                size s. It is an error if any of the index values are out of bounds.

            updates: Tensor of rank r >=1 (same rank and shape as indices)

            axis: Which axis to scatter on. Negative value means counting dimensions
                from the back. Accepted range is [-r, r-1] where r = rank(data).
        ScatterElementsr!   r    r)   r0   )r3   r+   r   r  r)   r4   r5   r$   r$   r%   r    s   SzOpset11.ScatterElementsT_ScatterNDc                 C  rQ   )u  [🌐 ScatterND(11)](https://onnx.ai/onnx/operators/onnx__ScatterND.html#scatternd-11 "Online Documentation")


        ScatterND takes three inputs `data` tensor of rank r >= 1, `indices` tensor of rank q >= 1,
        and `updates` tensor of rank q + r - indices.shape[-1] - 1. The output of the operation
        is produced by creating a copy of the input `data`, and then updating its value to values
        specified by `updates` at specific index positions specified by `indices`. Its output shape
        is the same as the shape of `data`. Note that `indices` should not have duplicate entries.
        That is, two or more `updates` for the same index-location is not supported.

        `indices` is an integer tensor. Let k denote indices.shape[-1], the last dimension in the shape of `indices`.
         `indices` is treated as a (q-1)-dimensional tensor of k-tuples, where each k-tuple is a partial-index into `data`.
        Hence, k can be a value at most the rank of `data`. When k equals rank(data), each update entry specifies an
        update to a single element of the tensor. When k is less than rank(data) each update entry specifies an
        update to a slice of the tensor. Index values are allowed to be negative, as per the usual
        convention for counting backwards from the end, but are expected in the valid range.

        `updates` is treated as a (q-1)-dimensional tensor of replacement-slice-values. Thus, the
        first (q-1) dimensions of updates.shape must match the first (q-1) dimensions of indices.shape.
        The remaining dimensions of `updates` correspond to the dimensions of the
        replacement-slice-values. Each replacement-slice-value is a (r-k) dimensional tensor,
        corresponding to the trailing (r-k) dimensions of `data`.  Thus, the shape of `updates`
        must equal indices.shape[0:q-1] ++ data.shape[k:r-1], where ++ denotes the concatenation
        of shapes.

        The `output` is calculated via the following equation:

            output = np.copy(data)
            update_indices = indices.shape[:-1]
            for idx in np.ndindex(update_indices):
                output[indices[idx]] = updates[idx]

        The order of iteration in the above loop is not specified.
        In particular, indices should not have duplicate entries: that is, if idx1 != idx2, then indices[idx1] != indices[idx2].
        This ensures that the output value does not depend on the iteration order.

        This operator is the inverse of GatherND.

        Example 1:
        ::

              data    = [1, 2, 3, 4, 5, 6, 7, 8]
              indices = [[4], [3], [1], [7]]
              updates = [9, 10, 11, 12]
              output  = [1, 11, 3, 10, 9, 6, 7, 12]



        Example 2:
        ::

              data    = [[[1, 2, 3, 4], [5, 6, 7, 8], [8, 7, 6, 5], [4, 3, 2, 1]],
                         [[1, 2, 3, 4], [5, 6, 7, 8], [8, 7, 6, 5], [4, 3, 2, 1]],
                         [[8, 7, 6, 5], [4, 3, 2, 1], [1, 2, 3, 4], [5, 6, 7, 8]],
                         [[8, 7, 6, 5], [4, 3, 2, 1], [1, 2, 3, 4], [5, 6, 7, 8]]]
              indices = [[0], [2]]
              updates = [[[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]],
                         [[1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3], [4, 4, 4, 4]]]
              output  = [[[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]],
                         [[1, 2, 3, 4], [5, 6, 7, 8], [8, 7, 6, 5], [4, 3, 2, 1]],
                         [[1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3], [4, 4, 4, 4]],
                         [[8, 7, 6, 5], [4, 3, 2, 1], [1, 2, 3, 4], [5, 6, 7, 8]]]




        Args:
            data: Tensor of rank r >= 1.

            indices: Tensor of rank q >= 1.

            updates: Tensor of rank q + r - indices_shape[-1] - 1.
        	ScatterNDr!   r    r0   )r3   r+   r   r  r4   r5   r$   r$   r%   r    s   MzOpset11.ScatterNDS_SequenceAtI_SequenceAtT_SequenceAtpositionc                 C  r   )u2  [🌐 SequenceAt(11)](https://onnx.ai/onnx/operators/onnx__SequenceAt.html#sequenceat-11 "Online Documentation")


        Outputs a tensor copy from the tensor at 'position' in 'input_sequence'.
        Accepted range for 'position' is in `[-n, n - 1]`, where `n` is the number of tensors in 'input_sequence'.
        Negative value means counting positions from the back.


        Args:
            input_sequence: Input sequence.

            position: Position of the tensor in the sequence. Negative value means
                counting positions from the back. Accepted range in `[-n, n - 1]`, where
                `n` is the number of tensors in 'input_sequence'. It is an error if any
                of the index values are out of bounds. It must be a scalar(tensor of
                empty shape).
        
SequenceAtr!   r    r0   r3   r^   r   r4   r5   r$   r$   r%   r!    s   zOpset11.SequenceAtT_SequenceConstructS_SequenceConstructc                 G  s.   t ddd}t| d|}|| j|g|R   S )uG  [🌐 SequenceConstruct(11)](https://onnx.ai/onnx/operators/onnx__SequenceConstruct.html#sequenceconstruct-11 "Online Documentation")


        Construct a tensor sequence containing 'inputs' tensors.
        All tensors in 'inputs' must have the same data type.


        Args:
            inputs: (variadic) Tensors.
        SequenceConstructr!   r    r0   )r3   rY   r4   r5   r$   r$   r%   r%    s   zOpset11.SequenceConstructS_SequenceEmptydtyper(  c                C  s"   t ddd}t| d|}||dS )uV  [🌐 SequenceEmpty(11)](https://onnx.ai/onnx/operators/onnx__SequenceEmpty.html#sequenceempty-11 "Online Documentation")


        Construct an empty tensor sequence, with given data type.


        Args:
            dtype: (Optional) The data type of the tensors in the output sequence. The
                default type is 'float'.
        SequenceEmptyr!   r    r'  rg   )r3   r(  r4   r5   r$   r$   r%   r)    s   
zOpset11.SequenceEmptyS_SequenceEraseI_SequenceEraseOptional[I_SequenceErase]c                 C  r   )u  [🌐 SequenceErase(11)](https://onnx.ai/onnx/operators/onnx__SequenceErase.html#sequenceerase-11 "Online Documentation")


        Outputs a tensor sequence that removes the tensor at 'position' from 'input_sequence'.
        Accepted range for 'position' is in `[-n, n - 1]`, where `n` is the number of tensors in 'input_sequence'.
        Negative value means counting positions from the back.
        'position' is optional, by default it erases the last tensor from 'input_sequence'.


        Args:
            input_sequence: Input sequence.

            position: (optional) Position of the tensor in the sequence. Negative value
                means counting positions from the back. Accepted range in `[-n, n - 1]`,
                where `n` is the number of tensors in 'input_sequence'. It is an error
                if any of the index values are out of bounds. It must be a scalar(tensor
                of empty shape).
        SequenceEraser!   r    r0   r"  r$   r$   r%   r-    s   zOpset11.SequenceEraseS_SequenceInsertT_SequenceInsertI_SequenceInserttensorOptional[I_SequenceInsert]c                 C  rQ   )u  [🌐 SequenceInsert(11)](https://onnx.ai/onnx/operators/onnx__SequenceInsert.html#sequenceinsert-11 "Online Documentation")


        Outputs a tensor sequence that inserts 'tensor' into 'input_sequence' at 'position'.
        'tensor' must have the same data type as 'input_sequence'.
        Accepted range for 'position' is in `[-n, n]`, where `n` is the number of tensors in 'input_sequence'.
        Negative value means counting positions from the back.
        'position' is optional, by default it inserts 'tensor' to the back of 'input_sequence'.


        Args:
            input_sequence: Input sequence.

            tensor: Input tensor to be inserted into the input sequence.

            position: (optional) Position in the sequence where the new tensor is
                inserted. It is optional and default is to insert to the back of the
                sequence. Negative value means counting positions from the back.
                Accepted range in `[-n, n]`, where `n` is the number of tensors in
                'input_sequence'. It is an error if any of the index values are out of
                bounds. It must be a scalar(tensor of empty shape).
        SequenceInsertr!   r    r0   )r3   r^   r1  r   r4   r5   r$   r$   r%   r3  [  s   zOpset11.SequenceInsertS_SequenceLengthI_SequenceLengthc                 C  r   )u*  [🌐 SequenceLength(11)](https://onnx.ai/onnx/operators/onnx__SequenceLength.html#sequencelength-11 "Online Documentation")


        Produces a scalar(tensor of empty shape) containing the number of tensors in 'input_sequence'.


        Args:
            input_sequence: Input sequence.
        SequenceLengthr!   r    r0   )r3   r^   r4   r5   r$   r$   r%   r6    s   zOpset11.SequenceLengthT_Slice
Tind_SlicestartsendsOptional[Tind_Slice]stepsc              	   C  s0   t ddd}t| d|}|| |||||| S )u@	  [🌐 Slice(11)](https://onnx.ai/onnx/operators/onnx__Slice.html#slice-11 "Online Documentation")


        Produces a slice of the input tensor along multiple axes. Similar to numpy:
        https://numpy.org/doc/stable/reference/routines.indexing.html
        Slices uses `starts`, `ends`, `axes` and `steps` inputs to specify the start and end
        dimension and step for each axis in the list of axes, it uses this information to
        slice the input `data` tensor. If a negative value is passed for any of the
        start or end indices, it represents number of elements before the end of that
        dimension. If the value passed to start or end is larger than the `n` (the
        number of elements in this dimension), it represents `n`. For slicing to the
        end of a dimension with unknown size, it is recommended to pass in `INT_MAX`
        when slicing forward and 'INT_MIN' when slicing backward.
        If a negative value is passed for step, it represents slicing backward.
        However step value cannot be 0.
        If `axes` are omitted, they are set to `[0, ..., ndim-1]`.
        If `steps` are omitted, they are set to `[1, ..., 1]` of length `len(starts)`
        Example 1:
          data = [
              [1, 2, 3, 4],
              [5, 6, 7, 8],
          ]
          axes = [0, 1]
          starts = [1, 0]
          ends = [2, 3]
          steps = [1, 2]
          result = [
              [5, 7],
          ]
        Example 2:
          data = [
              [1, 2, 3, 4],
              [5, 6, 7, 8],
          ]
          starts = [0, 1]
          ends = [-1, 1000]
          result = [
              [2, 3, 4],
          ]


        Args:
            data: Tensor of data to extract slices from.

            starts: 1-D tensor of starting indices of corresponding axis in `axes`

            ends: 1-D tensor of ending indices (exclusive) of corresponding axis in
                `axes`

            axes: (optional) 1-D tensor of axes that `starts` and `ends` apply to.
                Negative value means counting dimensions from the back. Accepted range
                is [-r, r-1] where r = rank(data).

            steps: (optional) 1-D tensor of slice step of corresponding axis in `axes`.
                Negative value means slicing backward. 'steps' cannot be 0. Defaults to
                1.
        Slicer!   r    r0   )r3   r+   r9  r:  r   r<  r4   r5   r$   r$   r%   r=    s   BzOpset11.Slice	T_Softmaxc                C  r   )u  [🌐 Softmax(11)](https://onnx.ai/onnx/operators/onnx__Softmax.html#softmax-11 "Online Documentation")


        The operator computes the softmax (normalized exponential) values for each layer in the batch
         of the given input.

        The input does not need to explicitly be a 2D vector; rather, it will be
        coerced into one. For an arbitrary n-dimensional tensor
        input \in [a_0, a_1, ..., a_{k-1}, a_k, ..., a_{n-1}] and k is
        the axis provided, then input will be coerced into a 2-dimensional tensor with
        dimensions [a_0 * ... * a_{k-1}, a_k * ... * a_{n-1}]. For the default
        case where axis=1, this means the input tensor will be coerced into a 2D tensor
        of dimensions [a_0, a_1 * ... * a_{n-1}], where a_0 is often the batch size.
        In this situation, we must have a_0 = N and a_1 * ... * a_{n-1} = D.
        Each of these dimensions must be matched correctly, or else the operator
        will throw errors. The output tensor has the same shape
        and contains the softmax values of the corresponding input.


        Args:
            input: The input tensor that's coerced into a 2D matrix of size (NxD) as
                described above.

            axis: Describes the axis of the inputs when coerced to 2D; defaults to one
                because the 0th axis most likely describes the batch_size. Negative
                value means counting dimensions from the back. Accepted range is [-r,
                r-1] where r = rank(input).
        Softmaxr!   r    r)   r0   r   r$   r$   r%   r?    r   zOpset11.SoftmaxT_Splitr)   splitrB  c                C  r.   )u`  [🌐 Split(11)](https://onnx.ai/onnx/operators/onnx__Split.html#split-11 "Online Documentation")

        Split a tensor into a list of tensors, along the specified
        'axis'. Lengths of the parts can be specified using argument 'split'.
        Otherwise, the tensor is split to equal sized parts.


        Args:
            input: The tensor to split

            axis: Which axis to split on. A negative value means counting dimensions
                from the back. Accepted range is [-rank, rank-1] where r = rank(input).

            split: length of each output. Values should be >= 0.
        Splitr!   r    rA  r0   )r3   rM   r)   rB  r4   r5   r$   r$   r%   rC  2  s   zOpset11.SplitT_SplitToSequenceI_SplitToSequenceS_SplitToSequenceOptional[I_SplitToSequence]c                C  r|   )ui  [🌐 SplitToSequence(11)](https://onnx.ai/onnx/operators/onnx__SplitToSequence.html#splittosequence-11 "Online Documentation")


        Split a tensor into a sequence of tensors, along the specified 'axis'.
        Lengths of the parts can be specified using the optional argument 'split'.
        If the argument `split' is not specified, a default scalar value of 1
        is used as the value of `split'.
        'split' must contain only positive numbers.
        'split' is either a scalar (tensor of empty shape), or a 1-D tensor.
        If 'split' is a scalar, then 'input' will be split into chunks all of size 'split'
        if possible. The last chunk alone may be smaller than 'split' if the 'input' size
        along the given axis 'axis' is not divisible by 'split'.
        If 'split' is a 1-dimensional tensor, the input tensor is split into 'size(split)' chunks,
        with lengths of the parts on 'axis' specified in 'split'. In this scenario, the sum of entries
        in 'split' must be equal to the dimension size of input tensor on 'axis'.


        Args:
            input: The tensor to split

            split: (optional) Length of each output. It can be either a scalar(tensor of
                empty shape), or a 1-D tensor. All values must be >= 0.

            axis: Which axis to split on. A negative value means counting dimensions
                from the back. Accepted range is [-rank, rank-1].

            keepdims: Keep the split dimension or not. Default 1, which means we keep
                split dimension. If input 'split' is specified, this attribute is
                ignored.
        SplitToSequencer!   r    r(   r0   )r3   rM   rB  r)   r*   r4   r5   r$   r$   r%   rH  p  s   'zOpset11.SplitToSequence	T_Squeeze)r   c                C  r   )u  [🌐 Squeeze(11)](https://onnx.ai/onnx/operators/onnx__Squeeze.html#squeeze-11 "Online Documentation")


        Remove single-dimensional entries from the shape of a tensor.
        Takes a  parameter `axes` with a list of axes to squeeze.
        If `axes` is not provided, all the single dimensions will be removed from
        the shape. If an axis is selected with shape entry not equal to one, an error is raised.


        Args:
            data: Tensors with at least max(dims) dimensions.

            axes: List of integers indicating the dimensions to squeeze. Negative value
                means counting dimensions from the back. Accepted range is [-r, r-1]
                where r = rank(data).
        Squeezer!   r    r   r0   r3   r+   r   r4   r5   r$   r$   r%   rJ    s   zOpset11.SqueezeT_TopKI_TopKr)   largestsortedKrO  rP  Tuple[T_TopK, I_TopK]c                C  s4   t ddd}t| d|}|| ||||||dS )u  [🌐 TopK(11)](https://onnx.ai/onnx/operators/onnx__TopK.html#topk-11 "Online Documentation")


        Retrieve the top-K largest or smallest elements along a specified axis. Given an input tensor of
        shape [a_0, a_1, ..., a_{n-1}] and integer argument k, return two outputs:

        * Value tensor of shape [a_0, a_1, ..., a_{axis-1}, k, a_{axis+1}, ... a_{n-1}]
          which contains the values of the top k elements along the specified axis
        * Index tensor of shape [a_0, a_1, ..., a_{axis-1}, k, a_{axis+1}, ... a_{n-1}] which
          contains the indices of the top k elements (original indices from the input
          tensor).

        * If "largest" is 1 (the default value) then the k largest elements are returned.
        * If "sorted" is 1 (the default value) then the resulting k elements will be sorted.
        * If "sorted" is 0, order of returned 'Values' and 'Indices' are undefined.

        Given two equivalent values, this operator uses the indices along the axis as
        a tiebreaker. That is, the element with the lower index will appear first.


        Args:
            X: (differentiable) Tensor of shape [a_0, a_1, ..., a_{n-1}]

            K: (non-differentiable) A 1-D tensor containing a single positive value
                corresponding to the number of top elements to retrieve

            axis: Dimension on which to do the sort. Negative value means counting
                dimensions from the back. Accepted range is [-r, r-1] where r =
                rank(input).

            largest: Whether to return the top-K largest or smallest elements.

            sorted: Whether to return the elements in sorted order.
        TopKr!   r    rN  r0   )r3   r@   rQ  r)   rO  rP  r4   r5   r$   r$   r%   rS    s   &zOpset11.TopKT_Uniquer)   rP  $Tuple[T_Unique, INT64, INT64, INT64]c                C  r.   )u  [🌐 Unique(11)](https://onnx.ai/onnx/operators/onnx__Unique.html#unique-11 "Online Documentation")


        Find the unique elements of a tensor. When an optional attribute 'axis' is provided, unique subtensors sliced along the 'axis' are returned.
        Otherwise the input tensor is flattened and unique values of the flattened tensor are returned.

        This operator returns the unique values or sliced unique subtensors of the input tensor and three optional outputs.
        The first output tensor 'Y' contains all unique values or subtensors of the input.
        The second optional output tensor 'indices' contains indices of 'Y' elements' first occurrence in 'X'.
        The third optional output tensor 'inverse_indices' contains, for elements of 'X', its corresponding indices in 'Y'.
        The fourth optional output tensor 'counts' contains the count of each element of 'Y' in the input.

        Outputs are either sorted in ascending order or optionally in the order of the first occurrence of the values in the input.

        https://docs.scipy.org/doc/numpy/reference/generated/numpy.unique.html

        Example 1:
        ::

            input_X = [2, 1, 1, 3, 4, 3]
            attribute_sorted = 0
            attribute_axis = None
            output_Y = [2, 1, 3, 4]
            output_indices = [0, 1, 3, 4]
            output_inverse_indices = [0, 1, 1, 2, 3, 2]
            output_counts = [1, 2, 2, 1]



        Example 2:
        ::

            input_X = [[1, 3], [2, 3]]
            attribute_sorted = 1
            attribute_axis = None
            output_Y = [1, 2, 3]
            output_indices = [0, 2, 1]
            output_inverse_indices = [0, 2, 1, 2]
            output_counts = [1, 1, 2]



        Example 3:
        ::

            input_X = [[1, 0, 0], [1, 0, 0], [2, 3, 4]]
            attribute_sorted = 1
            attribute_axis = 0
            output_Y = [[1, 0, 0], [2, 3, 4]]
            output_indices = [0, 2]
            output_inverse_indices = [0, 0, 1]
            output_counts = [2, 1]



        Example 4:
        ::

            input_x = [[[1., 1.], [0., 1.], [2., 1.], [0., 1.]],
                        [[1., 1.], [0., 1.], [2., 1.], [0., 1.]]]
            attribute_sorted = 1
            attribute_axis = 1



        intermediate data are presented below for better understanding:
        there are 4 subtensors sliced along axis 1 of input_x (shape = (2, 4, 2)):
        ::

            A: [[1, 1], [1, 1]],
               [[0, 1], [0, 1]],
               [[2, 1], [2, 1]],
               [[0, 1], [0, 1]].



        there are 3 unique subtensors:
        ::

            [[1, 1], [1, 1]],
            [[0, 1], [0, 1]],
            [[2, 1], [2, 1]].



        sorted unique subtensors:
        ::

            B: [[0, 1], [0, 1]],
               [[1, 1], [1, 1]],
               [[2, 1], [2, 1]].



        output_Y is constructed from B:
        ::

            [[[0. 1.], [1. 1.], [2. 1.]],
             [[0. 1.], [1. 1.], [2. 1.]]]



        output_indices is to map from B to A:
        ::

            [1, 0, 2]



        output_inverse_indices is to map from A to B:
        ::

            [1, 0, 2, 0]



        output_counts:
        ::

            [2, 1, 1]




        Args:
            X: (non-differentiable) A N-D input tensor that is to be processed.

            axis: (Optional) The dimension to apply unique. If not specified, the unique
                elements of the flattened input are returned. Negative value means
                counting dimensions from the back. Accepted range is [-r, r-1] where r =
                rank(input).

            sorted: (Optional) Whether to sort the unique elements in ascending order
                before returning as output. Must be one of 0, or 1 (default).
        Uniquer!   r    rU  r0   )r3   r@   r)   rP  r4   r5   r$   r$   r%   rW    s    zOpset11.UniqueT_Unsqueezec                C  r   )u3  [🌐 Unsqueeze(11)](https://onnx.ai/onnx/operators/onnx__Unsqueeze.html#unsqueeze-11 "Online Documentation")


        Insert single-dimensional entries to the shape of an input tensor (`data`).
        Takes one required argument `axes` - which contains a list of dimension indices and this operator will insert a dimension of value `1` into the corresponding index of the output tensor (`expanded`).

        For example:
          Given an input tensor (`data`) of shape [3, 4, 5], then
          Unsqueeze(data, axes=[0, 4]) outputs a tensor (`expanded`) containing same data as `data` but with shape [1, 3, 4, 5, 1].

        The attribute `axes` should not contain any duplicate entries. It is an error if it contains duplicates.
        The rank of the output tensor (`output_rank`) is the rank of the input tensor (`data`) plus the number of values in `axes`.
        Each value in `axes` should be within the (inclusive) range [-output_rank , output_rank - 1].
        The order of values in `axes` does not matter and can come in any order.



        Args:
            data: Original tensor

            axes: List of integers indicating the dimensions to be inserted. Negative
                value means counting dimensions from the back. Accepted range is [-r,
                r-1] where r = rank(expanded).
        	Unsqueezer!   r    r   r0   rK  r$   r$   r%   rY    s   zOpset11.Unsqueeze)r+   r&   r)   r,   r*   r,   r-   r   )r+   r7   r)   r,   r*   r,   r-   r   )r@   r9   r;   rA   r<   r,   r=   r,   rB   rC   r>   rD   r?   rD   r-   r9   )r@   rF   rG   rF   rH   rA   r-   rF   )NN)rM   rL   rN   rO   rP   rO   r-   rL   )rM   rS   rU   rT   r)   rV   r-   rS   )rY   rX   r)   r,   r-   rX   )r^   r[   r)   r,   r]   r,   r-   r\   )rb   rd   rc   re   r-   r`   )N)r@   rh   rl   rh   rm   rn   r;   rA   rj   rD   rk   r,   rB   rD   r>   rD   r?   rD   r-   rh   )r@   rp   rl   rp   rm   rt   r;   rA   rj   rD   rk   r,   rB   rD   rr   rD   rs   rD   r>   rD   r?   rD   r-   rp   )
r{   rv   r)   rw   ry   r,   rz   r,   r-   rv   )rM   r~   r   r,   r   rA   r-   r~   )r@   r   r-   r   )r{   r   r-   r   )r   r   rm   r   r-   r   )rM   r   r)   r,   r-   r   )r+   r   r   r   r)   r,   r-   r   )r+   r   r   r   r)   r,   r-   r   )r+   r   r   r   r-   r   )r   r   rm   r   r   r   r   r   r   r   r   r,   r   r,   r-   r   )rM   r   r)   r,   r-   r   )r   r   r   r   r   r   r-   r   )rM   r   r)   r,   r-   r   )
r   r   r   r   r   r   r   r   r-   r   )r@   r   r;   rA   rB   rC   r   r,   r>   rD   r?   rD   r-   r   )r@   r   r;   rA   r<   r,   rj   rD   rB   rC   r>   rD   r   r,   r?   rD   r-   r   )r@   r   r   r   rs   r   rB   rC   r>   rD   r?   rD   r-   r   )NNN)r   r   r   r   r   r   r   r   r   r   r   r,   r-   r   )
r   r   r   r   r   r   r)   r,   r-   r   )
r+   r   r>   r   r   r   r   rA   r-   r   )r   r   r   r   r   r   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r+   r   r   rD   r*   r,   r-   r   )r@   r   r	  r   r
  r   r  r   r  rA   r  r   r  r,   r  r   r   rA   r  rA   r-   r   )r@   r  r-   r  )r  r  r   r   r  r,   r  rD   r  rD   r  rD   r  rD   r-   r  )
r+   r  r   r  r  r  r)   r,   r-   r  )r+   r  r   r   r  r  r-   r  )r^   r  r   r  r-   r  )rY   r#  r-   r$  )r(  rV   r-   r&  )r^   r*  r   r,  r-   r*  )r^   r.  r1  r/  r   r2  r-   r.  )r^   r4  r-   r5  )r+   r7  r9  r8  r:  r8  r   r;  r<  r;  r-   r7  )rM   r>  r)   r,   r-   r>  )rM   r@  r)   r,   rB  rD   r-   r@  )
rM   rD  rB  rG  r)   r,   r*   r,   r-   rF  )r+   rI  r   rD   r-   rI  )r@   rL  rQ  r   r)   r,   rO  r,   rP  r,   r-   rR  )r@   rT  r)   rV   rP  r,   r-   rV  )r+   rX  r   rC   r-   rX  )__name__
__module____qualname__r"   r   r   r   r   r   r   r   r   r   r   r   r   r&   r/   r7   r8   r9   rE   rF   rJ   rL   rR   r   r   r   r   rS   rT   __annotations__rW   rX   rZ   r   r[   r   r\   r_   r`   rf   rh   ro   rp   ru   rv   rw   r}   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r  r  r  r  r  r  r!  r#  r$  r%  r&  r)  r*  r+  r-  r.  r/  r0  r3  r4  r5  r6  r7  r8  r=  r>  r?  r@  rC  rD  rE  rF  rH  rI  rJ  rL  rM  rS  rT  rW  rX  rY  r$   r$   r$   r%   r   *   s0  
 gXp/01PUS:"" )@dU?:m8    ! !   y <WQ!F"+/ r   N)&
__future__r   typingr   r   r   r   r   onnxr   r	   r
   	onnx.defsr   typing_extensionsr   #onnxscript.onnx_opset._impl.opset10r   onnxscript.onnx_typesr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   onnxscript.valuesr   r   r   r$   r$   r$   r%   <module>   s   D