!14281 Fix some bug of API of Conv3d, Conv3dTranspose.

From: @liu_xiao_93
Reviewed-by: @liangchenghui,@wuxuejian
Signed-off-by: @liangchenghui
pull/14281/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit d2b61a0dc2

@ -482,7 +482,7 @@ class Conv3d(_Conv):
3D convolution layer. 3D convolution layer.
Applies a 3D convolution over an input tensor which is typically of shape Applies a 3D convolution over an input tensor which is typically of shape
For input shape :math:`(N, C_{in}, D_{in}, H_{in}, W_{in})` and output shape :math:`(N, C_{in}, D_{in}, H_{in}, W_{in})` and output shape
:math:`(N, C_{out}, D_{out}, H_{out}, W_{out})`. where :math:`N` is batch size. :math:`C` is channel number. :math:`(N, C_{out}, D_{out}, H_{out}, W_{out})`. where :math:`N` is batch size. :math:`C` is channel number.
the formula is defined as: the formula is defined as:
@ -731,7 +731,7 @@ class Conv3dTranspose(_Conv):
Supported Platforms: Supported Platforms:
``Ascend`` ``Ascend``
Raise: Raises:
TypeError: If `in_channels`, `out_channels` or `group` is not an int. TypeError: If `in_channels`, `out_channels` or `group` is not an int.
TypeError: If `kernel_size`, `stride`, `padding` , `dilation` or `output_padding` TypeError: If `kernel_size`, `stride`, `padding` , `dilation` or `output_padding`
is neither an int not a tuple of three. is neither an int not a tuple of three.

@ -7693,7 +7693,7 @@ class Conv3D(PrimitiveWithInfer):
3D convolution layer. 3D convolution layer.
Applies a 3D convolution over an input tensor which is typically of shape Applies a 3D convolution over an input tensor which is typically of shape
For input shape :math:`(N, C_{in}, D_{in}, H_{in}, W_{in})` and output shape :math:`(N, C_{in}, D_{in}, H_{in}, W_{in})` and output shape
:math:`(N, C_{out}, D_{out}, H_{out}, W_{out})`. where :math:`N` is batch size. :math:`C` is channel number. :math:`(N, C_{out}, D_{out}, H_{out}, W_{out})`. where :math:`N` is batch size. :math:`C` is channel number.
the formula is defined as: the formula is defined as:
@ -8133,7 +8133,7 @@ class Conv3DTranspose(PrimitiveWithInfer):
Supported Platforms: Supported Platforms:
``Ascend`` ``Ascend``
Raise: Raises:
TypeError: If `in_channel`, `out_channel` or `group` is not an int. TypeError: If `in_channel`, `out_channel` or `group` is not an int.
TypeError: If `kernel_size`, `stride`, `pad` , `dilation` or `output_padding` is neither an int not a tuple. TypeError: If `kernel_size`, `stride`, `pad` , `dilation` or `output_padding` is neither an int not a tuple.
ValueError: If `in_channel`, `out_channel`, `kernel_size`, `stride` or `dilation` is less than 1. ValueError: If `in_channel`, `out_channel`, `kernel_size`, `stride` or `dilation` is less than 1.

Loading…
Cancel
Save