Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
RepeatVector layer
[go: Go Back, main page]

RepeatVector layer

[source]

RepeatVector class

keras.layers.RepeatVector(n, **kwargs)

Repeats the input n times.

Example

>>> x = keras.Input(shape=(32,))
>>> y = keras.layers.RepeatVector(3)(x)
>>> y.shape
(None, 3, 32)

Arguments

  • n: Integer, repetition factor.

Input shape

2D tensor with shape (batch_size, features).

Output shape

3D tensor with shape (batch_size, n, features).