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
I met one question, that
"
File "/home/cx/quick_code/github_sources/CPM-main/train.py", line 298, in
main()
File "/home/cx/quick_code/github_sources/CPM-main/train.py", line 294, in main
train(model, logger, train_dataset, args)
File "/home/cx/quick_code/github_sources/CPM-main/train.py", line 184, in train
train_loss = train_epoch(
File "/home/cx/quick_code/github_sources/CPM-main/train.py", line 149, in train_epoch
epoch_mean_loss = total_loss / len(train_dataloader)
ZeroDivisionError: division by zero
python-BaseException
"
len(train_dataloader) is 0.
The text was updated successfully, but these errors were encountered:
I met one question, that
"
File "/home/cx/quick_code/github_sources/CPM-main/train.py", line 298, in
main()
File "/home/cx/quick_code/github_sources/CPM-main/train.py", line 294, in main
train(model, logger, train_dataset, args)
File "/home/cx/quick_code/github_sources/CPM-main/train.py", line 184, in train
train_loss = train_epoch(
File "/home/cx/quick_code/github_sources/CPM-main/train.py", line 149, in train_epoch
epoch_mean_loss = total_loss / len(train_dataloader)
ZeroDivisionError: division by zero
python-BaseException
"
The text was updated successfully, but these errors were encountered: