forked from mindspore-Ecosystem/mindspore
modify pad docs
This commit is contained in:
parent
939db14f6c
commit
e4b777b547
|
@ -30,5 +30,5 @@ mindspore.ops.pad
|
|||
异常:
|
||||
- **TypeError** - `padding` 不是全为int的tuple或者list。
|
||||
- **TypeError** - `input_x` 不是Tensor。
|
||||
- **ValueError** - `paddings` 的shape不等于 2 * len(input_x)。
|
||||
- **ValueError** - `paddings` 的长度不为偶数。
|
||||
- **ValueError** - mode不为"constant"并且value不为None。
|
||||
|
|
|
@ -2452,7 +2452,7 @@ def pad(input_x, padding, mode='constant', value=None):
|
|||
Raises:
|
||||
TypeError: If `paddings` is not an int of tuple or int of list.
|
||||
TypeError: If `input_x` is not a Tensor.
|
||||
ValueError: If padding.size is not equal to 2 * len(input_x).
|
||||
ValueError: If length of `padding` is not even.
|
||||
ValueError: If mode is not "constant" and value not None.
|
||||
|
||||
Supported Platforms:
|
||||
|
|
Loading…
Reference in New Issue