 why there is a " all_loss += loss " in the end , I think it should have been done by the weighted process of "all_loss += loss *weight" Thank you for your attention to this matter, and I look forward to hearing from you.