Function marian::clip¶

Function Documentation¶

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

Clip the values in an expression.

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

See
Parameters
• a: Expr to clip

• c: Threshold to clip at