I have a very simple model which takes in a vector and should output a repeated element vector. Eg: I/P : [1,2,3] rep =3 | O/P = [1,1,1,2,2,2,3,3,3]. This is how my model looks like :
def simple_network(dim):
x1 = Input(shape = (dim))
repeated = Lambda(lambda x: K.repeat_elements(x, rep=12, axis=0))(x1)
model = Model(inputs = x1, outputs = repeated)
return model
However, this is what model_summary shows :
Model: "model_61"
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
input_19 (InputLayer) [(None, 7)] 0
_________________________________________________________________
lambda_17 (Lambda) (None, 7) 0
=================================================================
Total params: 0
Trainable params: 0
Non-trainable params: 0
Dim of my input vector is 7. Shouldn't I be getting an 84 dim vector as output? where am I going wrong?