From 7c767a44c245ef145644d691fa89319e91610de4 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Wed, 26 Sep 2018 13:36:27 +0800 Subject: [PATCH] Polish code test=develop --- python/paddle/fluid/layers/nn.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 4d8f887cbaa..f4f462ec3bb 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -6689,6 +6689,7 @@ def clip_by_norm(x, max_norm, name=None): out = helper.create_variable( name=name, dtype=x.dtype, persistable=False) + # max_norm should always be set helper.append_op( type="clip_by_norm", inputs={"X": x}, -- GitLab