diff --git a/python/paddle/nn/utils/weight_norm_hook.py b/python/paddle/nn/utils/weight_norm_hook.py index ae797a3f2bed0bc945382bd4eff0b721601881f3..e3fa28723875be7cacdf39db853e6774cb421737 100644 --- a/python/paddle/nn/utils/weight_norm_hook.py +++ b/python/paddle/nn/utils/weight_norm_hook.py @@ -232,6 +232,7 @@ def remove_weight_norm(layer, name='weight'): # Conv2D(3, 5, kernel_size=[3, 3], data_format=NCHW) remove_weight_norm(conv) + # The following is the effect after removing the weight norm: # print(conv.weight_g) # AttributeError: 'Conv2D' object has no attribute 'weight_g' """