tf.keras.backend.reshape

tf.keras.backend.reshape(
    x,
    shape
)

Defined in tensorflow/python/keras/backend.py.

Reshapes a tensor to the specified shape.

Arguments:

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

Returns:

A tensor.