Browse Source

docs(docstring): fix pad docstring

GitOrigin-RevId: 698d2f1c0d
HuaHua404-patch-4
Megvii Engine Team 2 years ago
parent
commit
6f7649e935
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      imperative/python/megengine/functional/nn.py

+ 2
- 2
imperative/python/megengine/functional/nn.py View File

@@ -1721,8 +1721,8 @@ def pad(
mode: One of the following string values. Default: ``'constant'``

* ``'constant'``: Pads with a constant value.
* ``'reflect'``: Pads with the edge values of tensor.
* ``'replicate'``: Pads with the reflection of the tensor mirrored on the first and last values of the tensor along each axis.
* ``'reflect'``: Pads with the reflection of the tensor mirrored on the first and last values of the tensor along each axis.
* ``'replicate'``: Pads with the edge values of tensor.
constant_val: Fill value for ``'constant'`` padding. Default: 0

Examples:


Loading…
Cancel
Save