Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.keras.backend.flatten

tf.keras.backend.flatten(x)

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

Flatten a tensor.

Arguments:

  • x: A tensor or variable.

Returns:

A tensor, reshaped into 1-D