TensorFlow 2.0 Beta is available Learn more

tf.keras.backend.reshape

TensorFlow 2.0 version View source on GitHub

Reshapes a tensor to the specified shape.

Aliases:

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

Arguments:

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

Returns:

A tensor.