最后一部web报错:Invalid argument: Session was not created with a graph before Run()!
AlleyEli opened this issue · 1 comments
前面步骤都没错,倒数第二是根据下面的pos_train.md训练的,那位大神解释下这是什么原因?tensorflow的版本问题吗?
I0419 10:04:40.841712 1135 tfmodel.cc:64] Reading file to proto: kcws/models/pos_model.pbtxt
I0419 10:04:40.841945 1135 tfmodel.cc:69] Creating session.
I0419 10:04:40.842041 1135 tfmodel.cc:77] Tensorflow graph loaded from:
kcws/models/pos_model.pbtxt
E0419 10:04:41.230602 1135 tfmodel.cc:88] Error during inference: Invalid argument: Session was not created with a graph before Run()!
2018-04-19 10:04:41.230641: E kcws/cc/pos_tagger.cc:215] Error during get trans tensors:
F0419 10:04:41.230651 1135 seg_backend_api.cc:57] Check failed: tagger-
LoadModel(FLAGS_pos_model_path, FLAGS_word_vocab_path, FLAGS_vocab_path,
FLAGS_pos_vocab_path, FLAGS_max_word_num) load pos model error
*** Check failure stack trace: ***
Aborted
已解决,把最后命令中的等号改成空格就好!