Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99c9265

Browse files
authored
fix spectral_norm en doc (PaddlePaddle#42728)
1 parent 3e7e0af commit 99c9265

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/paddle/nn/utils/spectral_norm_hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def spectral_norm(layer,
178178
.. code-block:: python
179179
180180
from paddle.nn import Conv2D
181-
from paddle.nn.utils import Spectralnorm
181+
from paddle.nn.utils import spectral_norm
182182
183183
conv = Conv2D(3, 1, 3)
184184
sn_conv = spectral_norm(conv)

0 commit comments

Comments
 (0)