R/check.R
check_positive.Rd
Validate a strictly positive scalar
check_positive(x, arg, allow_inf = FALSE)
The user's value.
Name of the argument.
Accept Inf, for a bound that is disabled by setting it to infinity (clip_grad_norm).
Inf
clip_grad_norm
x as a double.
x