tf.keras.backend.reshape

Reshapes a tensor to the specified shape.

Aliases:

  • tf.compat.v1.keras.backend.reshape
  • tf.compat.v2.keras.backend.reshape
  • tf.keras.backend.reshape
tf.keras.backend.reshape(
    x,
    shape
)

Defined in python/keras/backend.py.

Arguments:

  • x: Tensor or variable.
  • shape: Target shape tuple.

Returns:

A tensor.