@@ -188,7 +238,7 @@ class GradientClipByValue(BaseGradientClipAttr):
returnparam,new_grad
classGradientClipByNorm(BaseGradientClipAttr):
classGradientClipByNorm(GradientClipBase):
"""
Convert the input multidimensional Tensor :math:`X` to a multidimensional Tensor whose L2 norm does not exceed the given two-norm maximum ( :math:`clip\_norm` ).
...
...
@@ -268,11 +318,42 @@ class GradientClipByNorm(BaseGradientClipAttr):