How gradients are flown back to Network in siamese architecture? How weights of all CNN models are same even when using different models
You only create ONE model for a siamese network that you pass your inputs to.
(You have created three models in the example)
So in your triplet case you would pass the three inputs seperatly to the network and compute a loss and backprop it.
The gradients are then updated just like training any neural net.