From e30e6fa0ca712b2497885d7bd9275f1f79c086b8 Mon Sep 17 00:00:00 2001 From: liuhe Date: Fri, 16 Apr 2021 10:59:42 +0800 Subject: [PATCH] update document of conv3d --- mindspore/nn/layer/conv.py | 2 +- mindspore/ops/operations/nn_ops.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 900c82ee197..22f76d30915 100644 --- a/mindspore/ops/operations/nn_ops.py +++ b/mindspore/ops/operations/nn_ops.py @@ -7681,7 +7681,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'.