Commit 4b1c4488 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Fix typo in loss message

parent 1feca912
......@@ -1496,7 +1496,7 @@ class AlphaFoldLoss(nn.Module):
if weight:
loss = loss_fn()
if(torch.isnan(loss) or torch.isinf(loss)):
logging.warning(f"{k} loss is NaN. Skipping example...")
logging.warning(f"{loss_name} loss is NaN. Skipping...")
loss = loss.new_tensor(0., requires_grad=True)
cum_loss = cum_loss + weight * loss
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment