function square_(x) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "square");
    const attrs = {};
    return (0, _engine.ENGINE).runKernel("Square", {
        x: $x
    }, attrs);
}
Computes square of `x` element-wise: `x ^ 2`

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

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

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