我检查了
training_arrays.py(这里)发生错误的函数,并且正如我所看到的,我认为问题可能出在以下这些语句中(从177行至205行):
batches = make_batches(num_train_samples, batch_size)for batch_index, (batch_start, batch_end) in enumerate(batches): # the problem is here # do stuff ...if batch_index == len(batches) - 1: # do stuff ...
如果批次为 空列表,则 可能会出现此错误。可能是您的训练集有问题吗?



