diff --git a/mindspore/nn/layer/conv.py b/mindspore/nn/layer/conv.py index 6c5baf351cd..6faf0842585 100644 --- a/mindspore/nn/layer/conv.py +++ b/mindspore/nn/layer/conv.py @@ -561,7 +561,7 @@ class Conv3d(_Conv): Raises: TypeError: If `in_channels`, `out_channels` or `group` is not an int. - TypeError: If `kernel_size`, `stride`, `padding` or `dilation` is neither an int nor a tuple of six. + TypeError: If `kernel_size`, `stride`, `padding` or `dilation` is neither an int nor a tuple. ValueError: If `out_channels`, `kernel_size`, `stride` or `dilation` is less than 1. ValueError: If `padding` is less than 0. ValueError: If `pad_mode` is not one of 'same', 'valid', 'pad'. diff --git a/mindspore/ops/operations/nn_ops.py b/mindspore/ops/operations/nn_ops.py index af33b40f88b..9aed7863709 100644 --- a/mindspore/ops/operations/nn_ops.py +++ b/mindspore/ops/operations/nn_ops.py @@ -7675,7 +7675,7 @@ class Conv3D(PrimitiveWithInfer): Raises: TypeError: If `out_channel` or `group` is not an int. - TypeError: If `kernel_size`, `stride`, `pad` or `dilation` is neither an int nor a tuple of six. + TypeError: If `kernel_size`, `stride`, `pad` or `dilation` is neither an int nor a tuple. ValueError: If `out_channel`, `kernel_size`, `stride` or `dilation` is less than 1. ValueError: If `pad` is less than 0. ValueError: If `pad_mode` is not one of 'same', 'valid', 'pad'.