Suppose I have the input of form [a,b,c] and I want to produce the output [a * b, b * c]
I thus would try something like this:
input = Input((3,))
output = Lambda(lambda x: [x[0]*x[1], x[1]*x[2]], output_shape = (2,))(input)
model = Model(input, output)
However, it seems to not work. When I print the summary I get:
shape(input) = (None,3)
shape(output) = [(3,),(3,)] ## shouldn't this be (None,2)?