Browse Source

update document of conv3d

pull/15261/head
liuhe 5 years ago
parent
commit
f3037e72ec
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mindspore/nn/layer/conv.py
  2. +1
    -1
      mindspore/ops/operations/nn_ops.py

+ 1
- 1
mindspore/nn/layer/conv.py View File

@@ -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'.


+ 1
- 1
mindspore/ops/operations/nn_ops.py View File

@@ -7783,7 +7783,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'.


Loading…
Cancel
Save