function neg_(x) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "neg");
    const inputs = {
        x: $x
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.Neg), inputs);
}
Computes `-1 * x` element-wise.

```js
const x = tf.tensor2d([1, 2, -2, 0], [2, 2]);

x.neg().print();  // or tf.neg(x)
```

@param x The input tensor.

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