| ag_clamp | R Documentation |
Clamps values to [lo, hi]. Gradient is 1 inside the interval,
0 at the boundary (straight-through estimator).
ag_clamp(x, lo = -Inf, hi = Inf)
x |
ag_tensor |
lo |
Lower bound (default |
hi |
Upper bound (default |
ag_tensor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.