Hello Frank,
Thank you for your reply!
What I‘m trying to do is stream weighting, so M1, M2, M2 are the fixed matrices. I want use dnn to predict the weights for the different models, so w1,w2,w3 are the vectors which have the same length as M1,M2,M3. The optimizer is used to update the parameters in dnn. The dnn produces the weights vectors. The cross entropy will be better for my task, because the output is kind of posteriors probability. I‘m not sure if I have made some mistakes, I don‘t know why my loss don‘t reduced.
Thank you
Wentao