Contents

BNNS.GradientClipping.byGlobalNorm(threshold:globalNorm:)

A constant that indicates that the operation clips gradients to a specified global Euclidean norm.

Declaration

case byGlobalNorm(threshold: Float, globalNorm: Float = 0)

Parameters

  • threshold:

    The maximum Euclidean norm.

  • globalNorm:

    An optional value for a known global Euclidean norm. Set to 0 to specify that the function computes the norm.

See Also

Gradient Clipping Functions