Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.keras.layers.Concatenate

TensorFlow 1 version View source on GitHub

Layer that concatenates a list of inputs.

tf.keras.layers.Concatenate(
    axis=-1, **kwargs
)

Used in the notebooks

Used in the tutorials

It takes as input a list of tensors, all of the same shape except for the concatenation axis, and returns a single tensor, the concatenation of all inputs.

Arguments:

  • axis: Axis along which to concatenate.
  • **kwargs: standard layer keyword arguments.