TensorFlow 2.0 RC is available Learn more

tf.keras.layers.concatenate

TensorFlow 2.0 version View source on GitHub

Functional interface to the Concatenate layer.

Aliases:

  • tf.compat.v1.keras.layers.concatenate
  • tf.compat.v2.keras.layers.concatenate
tf.keras.layers.concatenate(
    inputs,
    axis=-1,
    **kwargs
)

Arguments:

  • inputs: A list of input tensors (at least 2).
  • axis: Concatenation axis.
  • **kwargs: Standard layer keyword arguments.

Returns:

A tensor, the concatenation of the inputs alongside axis axis.