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
in the train.py, we calculate loss by: cost = criterion(preds, text, preds_size, length) / batch_size
but the sample provided by pytorch does not divide batch_size, so should we divide batch_Size?
The text was updated successfully, but these errors were encountered:
in the train.py, we calculate loss by: cost = criterion(preds, text, preds_size, length) / batch_size
but the sample provided by pytorch does not divide batch_size, so should we divide batch_Size?
The text was updated successfully, but these errors were encountered: