function clipByValue_(x, clipValueMin, clipValueMax) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "clipByValue");
    _util.assert(clipValueMin <= clipValueMax, ()=>`Error in clip: min (${clipValueMin}) must be ` + `less than or equal to max (${clipValueMax}).`);
    if (clipValueMin === clipValueMax) return (0, _fill.fill)($x.shape, clipValueMin, $x.dtype);
    const inputs = {
        x: $x
    };
    const attrs = {
        clipValueMin,
        clipValueMax
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.ClipByValue), inputs, attrs);
}
Clips values element-wise. `max(min(x, clipValueMax), clipValueMin)`

```js
const x = tf.tensor1d([-1, 2, -3, 4]);

x.clipByValue(-2, 3).print();  // or tf.clipByValue(x, -2, 3)
```
@param x The input tensor.
@param clipValueMin Lower bound of range to be clipped to.
@param clipValueMax Upper bound of range to be clipped to.

@doc {heading: 'Operations', subheading: 'Basic math'}