tf.keras.backend.expand_dims

View source on GitHub

Adds a 1-sized dimension at index "axis".

tf.keras.backend.expand_dims(
    x, axis=-1
)

Arguments:

Returns:

A tensor with expanded dimensions.