Enum GradientClippingMethod
Specifies the method used for gradient clipping.
public enum GradientClippingMethod
Fields
ByNorm = 0Clips gradients by scaling the entire gradient vector if its L2 norm exceeds a threshold. This preserves the gradient direction and is generally the preferred method.
ByValue = 1Clips each gradient element independently to a fixed range. Simpler but may change the gradient direction.