victorc25:

but in my case I’m working with CNN networks


The posted approach is independent of the model architecture and just combines the model outputs before feeding them to a final classifier.
You could also manipulate the sumbodels to output the penultimate activation, if needed.



 victorc25:

and instead would like to optimize how to combine the models instead of combining the results of the models.


Could you explain, what the first approach would do in comparison the combining the results, please?