def repeat_vector(layer, layer_in, layerId): out = {layerId: RepeatVector(layer['params']['n'])(*layer_in)} return out