tf.keras.backend.squeeze

View source

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

Aliases:

  • tf.compat.v1.keras.backend.squeeze
  • tf.compat.v2.keras.backend.squeeze
tf.keras.backend.squeeze(
    x,
    axis
)

Arguments:

  • x: A tensor or variable.
  • axis: Axis to drop.

Returns:

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

results matching ""

    No results matching ""