Save the date! Google I/O returns May 18-20 Register now

tf.keras.backend.squeeze

TensorFlow 2 version View source on GitHub

Removes a 1-dimension from the tensor at index "axis".

x A tensor or variable.
axis Axis to drop.

A tensor with the same data as x but reduced dimensions.