function squeeze_(x, axis) {
    const $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "squeeze", "string_or_numeric");
    return (0, _reshape.reshape)($x, (0, _util.squeezeShape)($x.shape, axis).newShape);
}
Removes dimensions of size 1 from the shape of a `tf.Tensor`.

```js
const x = tf.tensor([1, 2, 3, 4], [1, 1, 4]);
x.squeeze().print();
```

@param x The input tensor to be squeezed.
@param axis An optional list of numbers. If specified, only
    squeezes the dimensions listed. The dimension index starts at 0. It
is an error to squeeze a dimension that is not 1.

@doc {heading: 'Tensors', subheading: 'Transformations'}