Calculate mutual information loss

out1=model1(input)
out2=model2(input)

I want to minimize the mutual information between out1 and out2
Any recommended api or implementation?
Thanks.

Can you reformulate your problem to make it more understandable?

I don’t understand what you want to do.

same question as Mutual information as custom loss function