我正在进行文本汇总,但是通过运行此代码块
for iteration in range(500):
print('Iteration',iteration)
h = model.fit_generator(traingen,steps_per_epoch=nb_train_samples//batch_size,epochs=1,validation_data=valgen,validation_steps=nb_val_samples
)
for k,v in h.history.iteritems():
history[k] = history.get(k,[]) + v
with open('data/%s.history.pkl'%FN,'wb') as fp:
pickle.dump(history,fp,-1)
model.save_weights('data/%s.hdf5'%FN,overwrite=True)
gensamples(batch_size=batch_size)
我收到此错误
InvalidArgumentError:张量embedding_1_input:0,在任一 在图表中找不到feed_devices或fetch_devices
该如何解决?