
    ёih                       S SK Jr  S SKJrJr  / rS SKJr  S SKJ	r	  S SK
Jr  S SKJr  S SKJr  SS	KJr  \(       a"  S S
KJr  S SKJr  S SKJrJrJrJrJrJr  S SKJr           S                       SS jjr         S                       SS jjr         S                       SS jjr          S                       S S jjr!       S!                   S"S jjr"        S#                     S$S jjr#        S#                     S$S jjr$       S%                   S&S jjr%        S'                     S(S jjr&        S'                     S(S jjr'g))    )annotations)TYPE_CHECKINGLiteral)_C_ops)LayerHelper)in_dynamic_or_pir_mode)_update_padding_nd)convert_to_list   )add)Sequence)Tensor)DataLayout2DDataLayout3DSize2Size3Size4Size6)_PaddingSizeModeNc           
        US:X  d   S5       eSnU	S;  a  [        SU	 S35      e[        U R                  5      S:w  a  [        SU R                   35      eU	S	:H  nU(       a  S
OSnU R                  U   n[        XLU5      u  pO[	        X;S5      n[	        X[S5      n[        5       (       a3  [        R                  " U UUUUUUUb  UOS5      nUb  [        UU5      $ U$ XS.nUUUUUUS.nSn[        U40 [        5       D6nUR                  SSS9nUR                  SSS9nUR                  U R                  5      nUUUS.nUR                  UUUUS9  Ub  [        UU5      $ U$ )N    Currently, only support groups=1r   NDHWCAAttr(data_format) should be 'NDHWC'. Received Attr(data_format): .   >Input x should be 5D tensor, but received x with the shape of r   stridedilation xkernelpaddings	dilationsstridesgroupssubmkeysparse_conv3dint32Tdtypestop_gradientoutrulebookcountertypeinputsoutputsattrs)
ValueErrorlenshaper	   r
   r   r   r-   r   r   locals"create_variable_for_type_inference)create_sparse_variable_for_type_inferencer0   	append_opr$   weightbiasr    paddingr!   r*   r+   r,   data_formatnamedimschannel_lastchannel_dimnum_channelspadding_algorithmpre_biasr8   r:   op_typehelperr4   r5   r9   s                           `/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/paddle/sparse/nn/functional/conv.py_conv3drQ   ,   s    Q;:::;D )#""-a1
 	
 177|qLQWWIV
 	
 ')L$"!K77;'L!3G4!PGV84Fxz:H''?C	
 x&&O+!
 "W11<< = 
 ;; < 
 CCAGGL"WM 	 	
 x&&O    c           
     
   US:X  d   S5       eSnU	S;  a  [        SU	 S35      e[        U R                  5      S:w  a  [        SU R                   35      eU	S	:H  nU(       a  S
OSn[        U R                  5      S:w  a  [        SU R                   35      eU R                  U   n[        XLU5      u  pO[	        X;S5      n[	        X[S5      n[        5       (       a#  [        R                  " U UUUUUUUb  UOS5      nOvXS.nUUUUUUS.nSn[        U40 [        5       D6nUR                  SSS9nUR                  SSS9nUR                  U R                  5      nUUUS.nUR                  UUUUS9  Ub  [        UU5      $ U$ )Nr   r      NHWC@Attr(data_format) should be 'NHWC'. Received Attr(data_format): r      >Input x should be 4D tensor, but received x with the shape of rV   r   r    r!   r"   r#   r&   r-   r.   Tr/   r2   r6   )r;   r<   r=   r	   r
   r   r   r-   r   r>   r?   r@   r0   rA   r   rB   s                           rP   _conv2drZ   |   s    Q;:::;D ("""-a1
 	
 177|qLQWWIV
 	
 &(L$"!K
177|qLQWWIV
 	
 77;'L!3G4!PGV84Fxz:H''?C	
 +!
 "W11<< = 
 ;; < 
 CCAGGL"WM 	 	
 8T""rR   c           
        US:X  d   S5       eUSL d   S5       eSnU	S;  a  [        SU	 S35      e[        U R                  5      S	:w  a  [        S
U R                   35      eU	S:H  nU(       a  SOSn[        U R                  5      S	:w  a  [        S
U R                   35      eU R                  U   n[        XLU5      u  pO[	        X;S5      n[	        X[S5      n[        5       (       a3  [        R                  " U UUUUUUUb  UOS5      nUb  [        UU5      $ U$ XS.nUUUUUUS.nSn[        U40 [        5       D6nUR                  U R                  5      nSU0nUR                  UUUUS9  Ub  [        UU5      $ U$ )Nr   r   T3Currently, only support subm=True for implicit gemmr   r   r   r   r   r   r   r   r    r!   r"   r#   r&   sparse_conv3d_implicit_gemmr3   r6   r;   r<   r=   r	   r
   r   r   r]   r   r   r>   r@   r0   rA   r$   rC   rD   r    rE   r!   r*   r+   r,   rF   rG   rH   rI   rJ   rK   rL   rM   r8   r:   rN   rO   r9   s                         rP   _conv3d_igemmr`      s    Q;:::;4<NNN<D )#""-a1
 	
 177|qLQWWIV
 	
 ')L$"!K
177|qLQWWIV
 	
 77;'L!3G4!PGV84Fxz:H55?C	
 x&&O+!
 0W11CCAGGL(# 	 	
 x&&OrR   c           
        US:X  d   S5       eUSL d   S5       eSnU	S;  a  [        SU	 S35      e[        U R                  5      S	:w  a  [        S
U R                   35      eU	S:H  nU(       a  SOSn[        U R                  5      S	:w  a  [        SU R                   35      eU R                  U   n[        XLU5      u  pO[	        X;S5      n[	        X[S5      n[        5       (       a3  [        R                  " U UUUUUUUb  UOS5      nUb  [        UU5      $ U$ XS.nUUUUUUS.nSn[        U40 [        5       D6nUR                  U R                  5      nSU0nUR                  UUUUS9  Ub  [        UU5      $ U$ )Nr   r   Tr\   rT   rU   rW   r   rX   r   rV   r   rY   r    r!   r"   r#   r&   r]   r3   r6   r^   r_   s                         rP   _conv2d_igemmrb     s    Q;:::;4<NNN<D ("""-a1
 	
 177|qLQWWIV
 	
 &(L$"!K
177|qLQWWIV
 	
 77;'L!3G4!PGV84Fxz:H55?C	
 x&&O+!
 0W11CCAGGL(# 	 	
 x&&OrR   c	                ,    [        U UUUUUUSSUU5      $ )aQ  
The sparse convolution3d functional calculates the output based on the input, filter
and strides, paddings, dilations, groups parameters. Input(Input) and
Output(Output) are multidimensional SparseCooTensors with a shape of
:math:`[N, D, H, W, C]` . Where N is batch size, C is the number of
channels, D is the depth of the feature, H is the height of the feature,
and W is the width of the feature. If bias attribution is provided,
bias is added to the output of the convolution.

For each input :math:`X`, the equation is:

..  math::

    Out = \sigma (W \ast X + b)

In the above equation:

* :math:`X`: Input value, a tensor with NCDHW or NDHWC format.
* :math:`W`: Filter value, a tensor with MCDHW format.
* :math:`\\ast`: Convolution operation.
* :math:`b`: Bias value, a 1-D tensor with shape [M].
* :math:`Out`: Output value, the shape of :math:`Out` and :math:`X` may be different.

Args:
    x (Tensor): The input is 5-D SparseCooTensor with shape [N, D, H, W, C], the data
        type of input is float16 or float32 or float64.
    weight (Tensor): The convolution kernel, a Tensor with shape [kD, kH, kW, C/g, M],
        where M is the number of filters(output channels), g is the number of groups,
        kD, kH, kW are the filter's depth, height and width respectively.
    bias (Tensor|None, optional): The bias, a Tensor of shape [M].
    stride (int|list|tuple, optional): The stride size. It means the stride in convolution. If stride is a
        list/tuple, it must contain three integers, (stride_depth, stride_height, stride_width).
        Otherwise, stride_depth = stride_height = stride_width = stride. Default: stride = 1.
    padding (string|int|list|tuple, optional): The padding size. It means the number of zero-paddings
        on both sides for each dimension. If `padding` is a string, either 'VALID' or
        'SAME' which is the padding algorithm. If padding size is a tuple or list,
        it could be in three forms: `[pad_depth, pad_height, pad_width]` or
        `[pad_depth_front, pad_depth_back, pad_height_top, pad_height_bottom, pad_width_left, pad_width_right]`,
        and when `data_format` is `"NCDHW"`, `padding` can be in the form
        `[[0,0], [0,0], [pad_depth_front, pad_depth_back], [pad_height_top, pad_height_bottom], [pad_width_left, pad_width_right]]`.
        when `data_format` is `"NDHWC"`, `padding` can be in the form
        `[[0,0], [pad_depth_front, pad_depth_back], [pad_height_top, pad_height_bottom], [pad_width_left, pad_width_right], [0,0]]`.
        Default: padding = 0.
    dilation (int|list|tuple, optional): The dilation size. It means the spacing between the kernel points.
        If dilation is a list/tuple, it must contain three integers, (dilation_depth, dilation_height,
        dilation_width). Otherwise, dilation_depth = dilation_height = dilation_width = dilation.
        Default: dilation = 1.
    groups (int, optional): The groups number of the Conv3D Layer. According to grouped
        convolution in Alex Krizhevsky's Deep CNN paper: when group=2,
        the first half of the filters is only connected to the first half
        of the input channels, while the second half of the filters is only
        connected to the second half of the input channels. Default: groups=1. Currently, only support groups=1.
    data_format (str, optional): Specify the data format of the input, and the data format of the output
        will be consistent with that of the input. An optional string from: `"NCDHW"`, `"NDHWC"`.
        The default is `"NDHWC"`. When it is `"NDHWC"`, the data is stored in the order of:
        `[batch_size, input_depth, input_height, input_width, input_channels]`.
    name(str|None, optional): For detailed information, please refer
       to :ref:`api_guide_Name`. Usually name is no need to set and
       None by default.

Returns:
    A SparseCooTensor representing the conv3d, whose data type is the same with input.

Examples:
    .. code-block:: pycon

        >>> import paddle

        >>> indices = [
        ...     [0, 0, 0, 0],
        ...     [0, 0, 0, 0],
        ...     [0, 0, 1, 2],
        ...     [1, 3, 2, 3],
        ... ]
        >>> values = [[1], [2], [3], [4]]
        >>> indices = paddle.to_tensor(indices, dtype='int32')
        >>> values = paddle.to_tensor(values, dtype='float32')
        >>> dense_shape = [1, 1, 3, 4, 1]
        >>> sparse_x = paddle.sparse.sparse_coo_tensor(indices, values, dense_shape, stop_gradient=True)
        >>> weight = paddle.randn((1, 3, 3, 1, 1), dtype='float32')
        >>> y = paddle.sparse.nn.functional.conv3d(sparse_x, weight)
        >>> print(y.shape)
        paddle.Size([1, 1, 1, 2, 1])
FNrQ   	r$   rC   rD   r    rE   r!   r*   rF   rG   s	            rP   conv3drf   j  s3    ~ 	 rR   c
                ,    [        U UUUUUUSUUU	5      $ a  

The sparse submanifold convolution3d functional calculates the output based on the input, filter
and strides, paddings, dilations, groups parameters. Input(Input) and
Output(Output) are multidimensional SparseCooTensors with a shape of
:math:`[N, D, H, W, C]` . Where N is batch size, C is the number of
channels, D is the depth of the feature, H is the height of the feature,
and W is the width of the feature. If bias attribution is provided,
bias is added to the output of the convolution.

For each input :math:`X`, the equation is:

..  math::

    Out = W \ast X + b

In the above equation:

* :math:`X`: Input value, a tensor with NCDHW or NDHWC format.
* :math:`W`: Filter value, a tensor with DHWCM format.
* :math:`\\ast`: Submanifold Convolution operation, refer to the paper: https://arxiv.org/abs/1706.01307.
* :math:`b`: Bias value, a 1-D tensor with shape [M].
* :math:`Out`: Output value, the shape of :math:`Out` and :math:`X` may be different.

Args:
    x (Tensor): The input is 5-D SparseCooTensor with shape [N, D, H, W, C], the data
        type of input is float16 or float32 or float64.
    weight (Tensor): The convolution kernel, a Tensor with shape [kD, kH, kW, C/g, M],
        where M is the number of filters(output channels), g is the number of groups,
        kD, kH, kW are the filter's depth, height and width respectively.
    bias (Tensor|None, optional): The bias, a Tensor of shape [M].
    stride (int|list|tuple, optional): The stride size. It means the stride in convolution. If stride is a
        list/tuple, it must contain three integers, (stride_depth, stride_height, stride_width).
        Otherwise, stride_depth = stride_height = stride_width = stride. Default: stride = 1.
    padding (string|int|list|tuple): The padding size. It means the number of zero-paddings
        on both sides for each dimension. If `padding` is a string, either 'VALID' or
        'SAME' which is the padding algorithm. If padding size is a tuple or list,
        it could be in three forms: `[pad_depth, pad_height, pad_width]` or
        `[pad_depth_front, pad_depth_back, pad_height_top, pad_height_bottom, pad_width_left, pad_width_right]`,
        and when `data_format` is `"NCDHW"`, `padding` can be in the form
        `[[0,0], [0,0], [pad_depth_front, pad_depth_back], [pad_height_top, pad_height_bottom], [pad_width_left, pad_width_right]]`.
        when `data_format` is `"NHWC"`, `padding` can be in the form
        `[[0,0], [pad_depth_front, pad_depth_back], [pad_height_top, pad_height_bottom], [pad_width_left, pad_width_right], [0,0]]`.
        Default: padding = 0.
    dilation (int|list|tuple, optional): The dilation size. It means the spacing between the kernel points.
        If dilation is a list/tuple, it must contain three integers, (dilation_depth, dilation_height,
        dilation_width). Otherwise, dilation_depth = dilation_height = dilation_width = dilation.
        Default: dilation = 1.
    groups (int, optional): The groups number of the Conv3D Layer. According to grouped
        convolution in Alex Krizhevsky's Deep CNN paper: when group=2,
        the first half of the filters is only connected to the first half
        of the input channels, while the second half of the filters is only
        connected to the second half of the input channels. Currently, only support groups=1.
    data_format (str, optional): Specify the data format of the input, and the data format of the output
        will be consistent with that of the input. An optional string from: `"NCDHW"`, `"NDHWC"`.
        The default is `"NDHWC"`. When it is `"NDHWC"`, the data is stored in the order of:
        `[batch_size, input_depth, input_height, input_width, input_channels]`.
    key(str|None, optional): the key is used to save or use the same rulebook,
        the definition and role of rulebook refers to
        https://pdfs.semanticscholar.org/5125/a16039cabc6320c908a4764f32596e018ad3.pdf. The
        default value is None.
    name(str|None, optional): For detailed information, please refer
       to :ref:`api_guide_Name`. Usually name is no need to set and
       None by default.

Returns:
    A SparseCooTensor representing the conv3d, whose data type is
    the same with input.

Examples:
    .. code-block:: pycon

        >>> import paddle

        >>> indices = [
        ...     [0, 0, 0, 0],
        ...     [0, 0, 0, 0],
        ...     [0, 0, 1, 2],
        ...     [1, 3, 2, 3],
        ... ]
        >>> values = [[1], [2], [3], [4]]
        >>> indices = paddle.to_tensor(indices, dtype='int32')
        >>> values = paddle.to_tensor(values, dtype='float32')
        >>> dense_shape = [1, 1, 3, 4, 1]
        >>> sparse_x = paddle.sparse.sparse_coo_tensor(indices, values, dense_shape, stop_gradient=True)
        >>> weight = paddle.randn((1, 3, 3, 1, 1), dtype='float32')
        >>> y = paddle.sparse.nn.functional.subm_conv3d(sparse_x, weight)
        >>> print(y.shape)
        paddle.Size([1, 1, 3, 4, 1])
Trd   
r$   rC   rD   r    rE   r!   r*   rF   r,   rG   s
             rP   subm_conv3drj     s3    L 	 rR   c
                ,    [        U UUUUUUSUUU	5      $ rh   )r`   ri   s
             rP   subm_conv3d_igemmrl   M  s3    L 	 rR   c	                ,    [        U UUUUUUSSUU5      $ )a5  

The sparse convolution2d functional calculates the output based on the input, filter
and strides, paddings, dilations, groups parameters. Input(Input) and
Output(Output) are multidimensional SparseCooTensors with a shape of
:math:`[N, H, W, C]` . Where N is batch size, C is the number of
channels, H is the height of the feature,
and W is the width of the feature. If bias attribution is provided,
bias is added to the output of the convolution.

For each input :math:`X`, the equation is:

..  math::

    Out = \sigma (W \ast X + b)

In the above equation:

* :math:`X`: Input value, a tensor with NHWC format.
* :math:`W`: Filter value, a tensor with HWCM format.
* :math:`\\ast`: Convolution operation.
* :math:`b`: Bias value, a 1-D tensor with shape [M].
* :math:`Out`: Output value, the shape of :math:`Out` and :math:`X` may be different.

Args:
    x (Tensor): The input is 4-D SparseCooTensor with shape [N, H, W, C], the data
        type of input is float16 or float32 or float64.
    weight (Tensor): The convolution kernel, a Tensor with shape [kH, kW, C/g, M],
        where M is the number of filters(output channels), g is the number of groups,
        kD, kH, kW are the filter's height and width respectively.
    bias (Tensor|None, optional): The bias, a Tensor of shape [M].
    stride (int|list|tuple, optional): The stride size. It means the stride in convolution. If stride is a
        list/tuple, it must contain two integers, (stride_height, stride_width).
        Otherwise, stride_height = stride_width = stride. Default: stride = 1.
    padding (string|int|list|tuple, optional): The padding size. It means the number of zero-paddings
        on both sides for each dimension. If `padding` is a string, either 'VALID' or
        'SAME' which is the padding algorithm. If padding size is a tuple or list,
        it could be in three forms: `[pad_height, pad_width]` or
        `[pad_height_top, pad_height_bottom, pad_width_left, pad_width_right]`,
        when `data_format` is `"NHWC"`, `padding` can be in the form
        `[[0,0], [pad_height_top, pad_height_bottom], [pad_width_left, pad_width_right], [0,0]]`.
        Default: padding = 0.
    dilation (int|list|tuple, optional): The dilation size. It means the spacing between the kernel points.
        If dilation is a list/tuple, it must contain two integers, (dilation_height,
        dilation_width). Otherwise, dilation_height = dilation_width = dilation.
        Default: dilation = 1.
    groups (int, optional): The groups number of the Conv2D Layer. According to grouped
        convolution in Alex Krizhevsky's Deep CNN paper: when group=2,
        the first half of the filters is only connected to the first half
        of the input channels, while the second half of the filters is only
        connected to the second half of the input channels. Default: groups=1. Currently, only support groups=1.
    data_format (str, optional): Specify the data format of the input, and the data format of the output
        will be consistent with that of the input. An optional string from: `"NHWC"`.
        The default is `"NHWC"`. When it is `"NHWC"`, the data is stored in the order of:
        `[batch_size, input_height, input_width, input_channels]`.
    name(str|None, optional): For detailed information, please refer
       to :ref:`api_guide_Name`. Usually name is no need to set and
       None by default.

Returns:
    A SparseCooTensor representing the conv2d, whose data type is the same with input.

Examples:
    .. code-block:: pycon

        >>> import paddle

        >>> indices = [[0, 0, 0, 0], [0, 0, 1, 2], [1, 3, 2, 3]]
        >>> values = [[1], [2], [3], [4]]
        >>> indices = paddle.to_tensor(indices, dtype='int32')
        >>> values = paddle.to_tensor(values, dtype='float32')
        >>> dense_shape = [1, 3, 4, 1]
        >>> sparse_x = paddle.sparse.sparse_coo_tensor(indices, values, dense_shape, stop_gradient=True)
        >>> weight = paddle.randn((3, 3, 1, 1), dtype='float32')
        >>> y = paddle.sparse.nn.functional.conv2d(sparse_x, weight)
        >>> print(y.shape)
        paddle.Size([1, 1, 2, 1])
FNrZ   re   s	            rP   conv2dro     s3    r 	 rR   c
                ,    [        U UUUUUUSUUU	5      $ a  

The sparse submanifold convolution2d functional calculates the output based on the input, filter
and strides, paddings, dilations, groups parameters. Input(Input) and
Output(Output) are multidimensional SparseCooTensors with a shape of
:math:`[N, H, W, C]` . Where N is batch size, C is the number of
channels, H is the height of the feature,
and W is the width of the feature. If bias attribution is provided,
bias is added to the output of the convolution.

For each input :math:`X`, the equation is:

..  math::

    Out = \sigma (W \ast X + b)

In the above equation:

* :math:`X`: Input value, a tensor with NHWC format.
* :math:`W`: Filter value, a tensor with HWCM format.
* :math:`\\ast`: Submanifold Convolution operation, refer to the paper: https://arxiv.org/abs/1706.01307.
* :math:`b`: Bias value, a 1-D tensor with shape [M].
* :math:`Out`: Output value, the shape of :math:`Out` and :math:`X` may be different.

Args:
    x (Tensor): The input is 4-D SparseCooTensor with shape [N, H, W, C], the data
        type of input is float16 or float32 or float64.
    weight (Tensor): The convolution kernel, a Tensor with shape [kH, kW, C/g, M],
        where M is the number of filters(output channels), g is the number of groups,
        kD, kH, kW are the filter's height and width respectively.
    bias (Tensor|None, optional): The bias, a Tensor of shape [M].
    stride (int|list|tuple, optional): The stride size. It means the stride in convolution. If stride is a
        list/tuple, it must contain two integers, (stride_height, stride_width).
        Otherwise, stride_height = stride_width = stride. Default: stride = 1.
    padding (string|int|list|tuple, optional): The padding size. It means the number of zero-paddings
        on both sides for each dimension. If `padding` is a string, either 'VALID' or
        'SAME' which is the padding algorithm. If padding size is a tuple or list,
        it could be in three forms: `[pad_height, pad_width]` or
        `[pad_height_top, pad_height_bottom, pad_width_left, pad_width_right]`,
        when `data_format` is `"NHWC"`, `padding` can be in the form
        `[[0,0], [pad_height_top, pad_height_bottom], [pad_width_left, pad_width_right], [0,0]]`.
        Default: padding = 0.
    dilation (int|list|tuple, optional): The dilation size. It means the spacing between the kernel points.
        If dilation is a list/tuple, it must contain two integers, (dilation_height,
        dilation_width). Otherwise, dilation_height = dilation_width = dilation.
        Default: dilation = 1.
    groups (int, optional): The groups number of the Conv2D Layer. According to grouped
        convolution in Alex Krizhevsky's Deep CNN paper: when group=2,
        the first half of the filters is only connected to the first half
        of the input channels, while the second half of the filters is only
        connected to the second half of the input channels. Default: groups=1. Currently, only support groups=1.
    data_format (str, optional): Specify the data format of the input, and the data format of the output
        will be consistent with that of the input. An optional string from: `"NHWC"`.
        The default is `"NHWC"`. When it is `"NHWC"`, the data is stored in the order of:
        `[batch_size, input_height, input_width, input_channels]`.
    key(str|None, optional): the key is used to save or use the same rulebook,
        the definition and role of rulebook refers to
        https://pdfs.semanticscholar.org/5125/a16039cabc6320c908a4764f32596e018ad3.pdf. The
        default value is None.
    name(str|None, optional): For detailed information, please refer
       to :ref:`api_guide_Name`. Usually name is no need to set and
       None by default.

Returns:
    A SparseCooTensor representing the conv2d, whose data type is the same with input.

Examples:
    .. code-block:: pycon

        >>> import paddle

        >>> indices = [[0, 0, 0, 0], [0, 0, 1, 2], [1, 3, 2, 3]]
        >>> values = [[1], [2], [3], [4]]
        >>> indices = paddle.to_tensor(indices, dtype='int32')
        >>> values = paddle.to_tensor(values, dtype='float32')
        >>> dense_shape = [1, 3, 4, 1]
        >>> sparse_x = paddle.sparse.sparse_coo_tensor(indices, values, dense_shape, stop_gradient=True)
        >>> weight = paddle.randn((3, 3, 1, 1), dtype='float32')
        >>> y = paddle.sparse.nn.functional.subm_conv2d(sparse_x, weight)
        >>> print(y.shape)
        paddle.Size([1, 3, 4, 1])
Trn   ri   s
             rP   subm_conv2drr   *  s3    | 	 rR   c
                ,    [        U UUUUUUSUUU	5      $ rq   )rb   ri   s
             rP   subm_conv2d_igemmrt     s3    | 	 rR   )	Nr   r   r   r   FNr   N)r$   r   rC   r   rD   Tensor | Noner    r   rE   2_PaddingSizeMode | Size3 | Size6 | Sequence[Size2]r!   r   r*   
Literal[1]r+   boolr,   
str | NonerF   Literal['NDHWC']rG   ry   returnr   )	Nr   r   r   r   FNrV   N)r$   r   rC   r   rD   ru   r    r   rE   2_PaddingSizeMode | Size2 | Size4 | Sequence[Size2]r!   r   r*   rw   r+   rx   r,   ry   rF   Literal['NHWC']rG   ry   r{   r   )	Nr   r   r   r   TNr   N)r$   r   rC   r   rD   ru   r    r   rE   rv   r!   r   r*   rw   r+   Literal[True]r,   ry   rF   rz   rG   ry   r{   r   )	Nr   r   r   r   TNrV   N)r$   r   rC   r   rD   ru   r    r   rE   r|   r!   r   r*   rw   r+   r~   r,   ry   rF   r}   rG   ry   r{   r   )Nr   r   r   r   r   N)r$   r   rC   r   rD   ru   r    r   rE   rv   r!   r   r*   rw   rF   r   rG   ry   r{   r   )Nr   r   r   r   r   NN)r$   r   rC   r   rD   ru   r    r   rE   rv   r!   r   r*   rw   rF   r   r,   ry   rG   ry   r{   r   )Nr   r   r   r   rV   N)r$   r   rC   r   rD   ru   r    r   rE   r|   r!   r   r*   rw   rF   r   rG   ry   r{   r   )Nr   r   r   r   rV   NN)r$   r   rC   r   rD   ru   r    r   rE   r|   r!   r   r*   rw   rF   r   r,   ry   rG   ry   r{   r   )(
__future__r   typingr   r   __all__paddler   paddle.base.layer_helperr   paddle.frameworkr   paddle.nn.functional.convr	   paddle.utilsr
   binaryr   collections.abcr   r   paddle._typingr   r   r   r   r   r   paddle.nn.functional.commonr   rQ   rZ   r`   rb   rf   rj   rl   ro   rr   rt    rR   rP   <module>r      s=   # )
  0 3 8 ( (  = BC$+MMM M 	M
 @M M M M 
M "M M Mf BC#)MMM M 	M
 @M M M M 
M !M M Mf BC$+LLL L 	L
 @L L L L 
L "L L Ld BC#)LLL L 	L
 @L L L L 
L !L L Ld BC 'kkk k 	k
 @k k k k k kb BC 'rrr r 	r
 @r r r r 
r r rp BC 'rrr r 	r
 @r r r r 
r r rp BC &eee e 	e
 @e e e e e eV BC &jjj j 	j
 @j j j j 
j j j` BC &jjj j 	j
 @j j j j 
j j jrR   