# Function marian::clipGradient¶

## Function Documentation¶

Expr marian::clipGradient(Expr a, float c)

Clip the gradient in an expression.

Clips the gradient of the Expr a to be within the interval $$[-c, c]$$

See

clip for the equivalent function which clips values

See