From 6f7649e9359ec8e1ac31cf3c7b45d7d9e0880737 Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Thu, 7 Jul 2022 15:00:24 +0800 Subject: [PATCH] docs(docstring): fix pad docstring GitOrigin-RevId: 698d2f1c0de8d739993db6598286c43482ceafdc --- imperative/python/megengine/functional/nn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imperative/python/megengine/functional/nn.py b/imperative/python/megengine/functional/nn.py index 684dcdaf..58a60b4d 100644 --- a/imperative/python/megengine/functional/nn.py +++ b/imperative/python/megengine/functional/nn.py @@ -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: