weight_decay fix
This commit is contained in:
parent
85a24dbc7e
commit
31d807e589
2
train.py
2
train.py
|
@ -259,7 +259,7 @@ def train():
|
|||
# Compute loss
|
||||
loss, loss_items = compute_loss(pred, targets, model)
|
||||
if torch.isnan(loss):
|
||||
print('WARNING: nan loss detected, ending training')
|
||||
print('WARNING: nan loss detected, ending training', loss_items)
|
||||
return results
|
||||
|
||||
# Scale loss by nominal batch_size of 64
|
||||
|
|
Loading…
Reference in New Issue