InvalidArgumentError:在图形中找不到在feed_devices或fetch_devices中指定的张量embedding_1_input:0

我正在进行文本汇总,但是通过运行此代码块

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

该如何解决?

qqcoboo 回答:InvalidArgumentError:在图形中找不到在feed_devices或fetch_devices中指定的张量embedding_1_input:0

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3168617.html

大家都在问