View source on GitHub |
Repeats the input n times.
Inherits From: Layer
tf.keras.layers.RepeatVector(
n, **kwargs
)
model = Sequential()
model.add(Dense(32, input_dim=32))
# now: model.output_shape == (None, 32)
# note: `None` is the batch dimension
model.add(RepeatVector(3))
# now: model.output_shape == (None, 3, 32)
n
: Integer, repetition factor.2D tensor of shape (num_samples, features)
.
3D tensor of shape (num_samples, n, features)
.