Missed TensorFlow World? Check out the recap. Learn more

tf.keras.backend.stack

TensorFlow 2.0 version View source on GitHub

Stacks a list of rank R tensors into a rank R+1 tensor.

Aliases:

  • tf.compat.v1.keras.backend.stack
  • tf.compat.v2.keras.backend.stack
tf.keras.backend.stack(
    x,
    axis=0
)

Arguments:

  • x: List of tensors.
  • axis: Axis along which to perform stacking.

Returns:

A tensor.