In Loss.py, I find the loss is averaging over batch, as below.
if self.batch_average:
loss /= n
However, I think the loss has already been averaged by setting Size_Average=True. Is there any specific concern on it?
In addition, when batch_average is True, the model has a problem of converging in my project. I guess the reason might be the loss is way too small.
Hello @jfzhang95,
In Loss.py, I find the loss is averaging over batch, as below.
if self.batch_average: loss /= n However, I think the loss has already been averaged by setting Size_Average=True. Is there any specific concern on it?
In addition, when batch_average is True, the model has a problem of converging in my project. I guess the reason might be the loss is way too small.
Thanks ahead.