Home > OS >  How can I connect the outputs of 2 keras models into one seperate layer?
How can I connect the outputs of 2 keras models into one seperate layer?

Time:09-27

I'm trying to solve a problem where I initially need to get 2 inputs, pass each of them through layers of autoencoders and then connect everything to a layer that will connect to both of the autoencoder outputs.

This is how the model should look at the end

(I'm a new user so I'm not allowed to embed pictures yet)

I've already created the autoencoder layers and saved them. I'm having trouble with finding out how to connect both of the outputs of the encoded data to one layer. An advice would be very appreciated.

CodePudding user response:

Use the concatenate layer available in keras .

CodePudding user response:

Try using the Concatenate layer. It takes multiple tensors and concatenates them to a single tensor.

https://keras.io/api/layers/merging_layers/concatenate/

  • Related