Hi,
In torch.nn.KLDivLoss, when I set “reduction = mean”, I receive this warning:
UserWarning: reduction: ‘mean’ divides the total loss by both the batch size and the support size.‘batchmean’ divides only by the batch size, and aligns with the KL div math definition.‘mean’ will be changed to behave the same as ‘batchmean’ in the next major release.
warnings.warn(“reduction: ‘mean’ divides the total loss by both the batch size and the support size.”
What does Support size mean in this context?