How to backward the average of multiple losses?

Thank you for answer.

To explain what I want to do, the approximate process is as follows.

In the end, you want to update using the average of each data loader’s losses.

Isn’t this structure a proper structure??