-
I'm trying to calculate perplexity. To do this, I need to sum all the loss across GPUs. It seems to me the loss return from
I got:
How do I gather the loss from all GPUs please? |
Beta Was this translation helpful? Give feedback.
Answered by
tjruwase
Sep 29, 2022
Replies: 1 comment
Answer selected by
tnq177
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do a reduce to sum the losses, such as this.