未验证 提交 771b589d 编写于 作者: M Moqim 提交者: GitHub

Update weight_norm_hook.py (#51178)

add comment.
上级 e43a527b
......@@ -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'
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册