tf.keras.backend.squeeze

View source on GitHub

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

tf.keras.backend.squeeze(
    x, axis
)

Arguments:

Returns:

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