forked from mindspore-Ecosystem/mindspore
!33756 optimizes the documentation of Pad
Merge pull request !33756 from zhangfanghe/code_docs_pad_master_429
This commit is contained in:
commit
244e078ad3
|
@ -6,8 +6,8 @@ mindspore.ops.Pad
|
|||
根据参数 `paddings` 对输入进行填充。
|
||||
|
||||
例如, 仅填充输入Tensor的最后一个维度,则填充方式为(padding_left, padding_right);填充输入Tensor的最后两个维度,
|
||||
则填充方式为(padding_left, padding_right, padding_top, padding_bottom);填充最后3个维度,则填充方式为
|
||||
(padding_left, padding_right, padding_top, padding_bottom, padding_front, padding_back)。
|
||||
则填充方式为((padding_top, padding_bottom), (padding_left, padding_right));填充最后3个维度,则填充方式为
|
||||
((padding_front, padding_back), (padding_top, padding_bottom), (padding_left, padding_right))。
|
||||
|
||||
.. math::
|
||||
\begin{aligned}
|
||||
|
|
|
@ -3861,9 +3861,9 @@ class Pad(PrimitiveWithInfer):
|
|||
For example,
|
||||
to pad only the last dimension of the input tensor, then pad has the form (padding_left,padding_right);
|
||||
to pad the last 2 dimensions of the input tensor, then use
|
||||
(padding_left,padding_right, padding_top,padding_bottom);
|
||||
((padding_top, padding_bottom), (padding_left, padding_right));
|
||||
to pad the last 3 dimensions, use
|
||||
(padding_left,padding_right, padding_top,padding_bottom padding_front,padding_back).
|
||||
((padding_front, padding_back), (padding_top, padding_bottom), (padding_left, padding_right)).
|
||||
|
||||
.. math::
|
||||
\begin{aligned}
|
||||
|
|
Loading…
Reference in New Issue