Google I/O returns May 18-20! Reserve space and build your schedule Register now


Repeats the input n times.

Inherits From: Layer, Module


model = Sequential()
model.add(Dense(32, input_dim=32))
# now: model.output_shape == (None, 32)
# note: `None` is the batch dimension

# now: model.output_shape == (None, 3, 32)

n Integer, repetition factor.

Input shape:

2D tensor of shape (num_samples, features).

Output shape:

3D tensor of shape (num_samples, n, features).