function relu6_(x) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "relu6");
    const inputs = {
        x: $x
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.Relu6), inputs);
}
Computes rectified linear 6 element-wise: `min(max(x, 0), 6)`.

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

x.relu6().print();  // or tf.relu6(x)
```
@param x The input tensor. If the dtype is `bool`, the output dtype will be
    `int32`.

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