View source on GitHub |
Remove axes of length one from x
.
tf.keras.ops.squeeze(
x, axis=None
)
Args | |
---|---|
x
|
Input tensor. |
axis
|
Select a subset of the entries of length one in the shape. |
Returns | |
---|---|
The input tensor with all or a subset of the dimensions of length 1 removed. |