You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm not sure if this behavior is intended or not but for a batch of 64 images, when I set size_average=False, i get a tensor of size 64 with individual values:
size_average (bool, optional) – Deprecated (see reduction). By default, the losses are averaged over each loss element in the batch. Note that for some losses, there are multiple elements per sample. If the field size_average is set to False, the losses are instead summed for each minibatch. Ignored when reduce is False. Default: True
The text was updated successfully, but these errors were encountered:
akashsara
changed the title
size_average=False returns a tensor containing individual MSE scores instead of returning their sum
size_average=False returns a tensor containing individual SSIM scores instead of returning their sum
May 25, 2021
Hi, I'm not sure if this behavior is intended or not but for a batch of 64 images, when I set size_average=False, i get a tensor of size 64 with individual values:
The usual approach in PyTorch is:
Source: https://pytorch.org/docs/stable/generated/torch.nn.MSELoss.html
The text was updated successfully, but these errors were encountered: