I want to train a model with a shared layer in the following form:
x --> F(x)
==> G(F(x),F(y))
y --> F(y)
x
and y
are two separate input layers and F
is a shared layer. G
is the last layer after concatenating F(x)
and F(y)
.
Is it possible to model this in Keras? How?