I am confused, can you help me?

Please note that the definition of this function is that it computes the sum of the costs across each minibatch, not the average. Here’s a thread which explains why it is done that way.

1 Like