I want to train Faster RCNN with my loss function. I want to use RPN loss for training RPN Network and train ROI head and Classifier head with my loss functions. So, I have three loss functions here and, I want to train my network with these three losses simultaneously. How can I do this? is there a method in Pytorch for training ??