tf.keras.backend.flatten

tf.keras.backend.flatten(x)

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

Flatten a tensor.

Arguments:

  • x: A tensor or variable.

Returns:

A tensor, reshaped into 1-D