I ran a code about the deep learning network,first I trained the network,and it works well,but this error occurs when running to the validate network.
I have five epoch,every epoch has a process of training and validation. I met the error when validate in the first epoch. So I don not run the validate code, I found that code can run to the second epoch and have no error.
for epoch in range(10,15): # epoch: 10~15 if(options["training"]["train"]): trainer.epoch(model, epoch) if(options["validation"]["validate"]): #if(epoch == 14): validator.epoch(model)
I feel the code of validation may have some bugs. But I can not find that.