Traceback (most recent call last):
File "D:\desktop\GPT2-chitchat-master\train.py", line 427, in
main()
File "D:\desktop\GPT2-chitchat-master\train.py", line 423, in main
train(model, logger, train_dataset, validate_dataset, args)
File "D:\desktop\GPT2-chitchat-master\train.py", line 298, in train
validate_loss = validate_epoch(
File "D:\desktop\GPT2-chitchat-master\train.py", line 251, in validate_epoch
epoch_mean_loss = total_loss / len(validate_dataloader)
ZeroDivisionError: division by zero
how to solve the problem?I hope someone can help me.
Traceback (most recent call last):
File "D:\desktop\GPT2-chitchat-master\train.py", line 427, in
main()
File "D:\desktop\GPT2-chitchat-master\train.py", line 423, in main
train(model, logger, train_dataset, validate_dataset, args)
File "D:\desktop\GPT2-chitchat-master\train.py", line 298, in train
validate_loss = validate_epoch(
File "D:\desktop\GPT2-chitchat-master\train.py", line 251, in validate_epoch
epoch_mean_loss = total_loss / len(validate_dataloader)
ZeroDivisionError: division by zero
how to solve the problem?I hope someone can help me.