function abs_(x) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "abs");
    if ($x.dtype === "complex64") {
        const inputs = {
            x: $x
        };
        return (0, _engine.ENGINE).runKernel((0, _kernelNames.ComplexAbs), inputs);
    } else {
        const inputs = {
            x: $x
        };
        return (0, _engine.ENGINE).runKernel((0, _kernelNames.Abs), inputs);
    }
}
Computes absolute value element-wise: `abs(x)`

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

x.abs().print();  // or tf.abs(x)
```
@param x The input `tf.Tensor`.

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