@@ -614,10 +614,10 @@ def conv2d(
614614 the number of output channels, g is the number of groups, kH is the filter's
615615 height, kW is the filter's width.
616616 bias (Tensor, optional): The bias with shape [M,].
617- stride (int|list|tuple): The stride size. It means the stride in convolution.
617+ stride (int|list|tuple, optional ): The stride size. It means the stride in convolution.
618618 If stride is a list/tuple, it must contain two integers, (stride_height, stride_width).
619619 Otherwise, stride_height = stride_width = stride. Default: stride = 1.
620- padding (string|int|list|tuple): The padding size. It means the number of zero-paddings
620+ padding (string|int|list|tuple, optional ): The padding size. It means the number of zero-paddings
621621 on both sides for each dimension.If `padding` is a string, either 'VALID' or
622622 'SAME' which is the padding algorithm. If padding size is a tuple or list,
623623 it could be in three forms: `[pad_height, pad_width]` or
@@ -627,11 +627,11 @@ def conv2d(
627627 when `data_format` is `"NHWC"`, `padding` can be in the form
628628 `[[0,0], [pad_height_top, pad_height_bottom], [pad_width_left, pad_width_right], [0,0]]`.
629629 Default: padding = 0.
630- dilation (int|list|tuple): The dilation size. It means the spacing between the kernel
630+ dilation (int|list|tuple, optional ): The dilation size. It means the spacing between the kernel
631631 points. If dilation is a list/tuple, it must contain two integers, (dilation_height,
632632 dilation_width). Otherwise, dilation_height = dilation_width = dilation.
633633 Default: dilation = 1.
634- groups (int): The groups number of the Conv2D Layer. According to grouped
634+ groups (int, optional ): The groups number of the Conv2D Layer. According to grouped
635635 convolution in Alex Krizhevsky's Deep CNN paper: when group=2,
636636 the first half of the filters is only connected to the first half
637637 of the input channels, while the second half of the filters is only
0 commit comments