kcws icon indicating copy to clipboard operation
kcws copied to clipboard

tf挂起整个进程不报错又不执行

Open kinghuangdd opened this issue 8 years ago • 1 comments

./bazel-bin/kcws/cc/seg_backend_api --model_path=kcws/models/seg_model.pbtxt --vocab_path=kcws/models/basic_vocab.txt --max_sentence_len=80 2017-09-30 17:04:54.607067: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 2017-09-30 17:04:54.607172: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. WARNING: Logging before InitGoogleLogging() is written to STDERR I0930 17:04:54.607589 3377 tfmodel.cc:64] Reading file to proto: kcws/models/seg_model.pbtxt I0930 17:04:54.610452 3377 tfmodel.cc:69] Creating session. I0930 17:04:54.631103 3377 tfmodel.cc:77] Tensorflow graph loaded from: kcws/models/seg_model.pbtxt 2017-09-30 17:04:54.632146: I kcws/cc/tf_seg_model.cc:239] Reading from layer transitions 2017-09-30 17:04:54.632201: I kcws/cc/tf_seg_model.cc:245] got num tag:4 2017-09-30 17:04:54.641910: I kcws/cc/tf_seg_model.cc:258] Total word :5689 I0930 17:04:54.641994 3377 tfmodel.cc:64] Reading file to proto: kcws/models/pos_model.pbtxt I0930 17:04:54.724326 3377 tfmodel.cc:69] Creating session. I0930 17:04:54.727192 3377 tfmodel.cc:77] Tensorflow graph loaded from: kcws/models/pos_model.pbtxt 2017-09-30 17:04:55.006319: I kcws/cc/pos_tagger.cc:218] Reading from layer transitions 2017-09-30 17:04:55.006388: I kcws/cc/pos_tagger.cc:224] got num tag:74 (2017-09-30 09:04:55) [INFO ] Crow/0.1 server is running, local port 9090

tensorflow运行不动且没有反馈, tf挂起整个进程不报错又不执行

kinghuangdd avatar Sep 30 '17 09:09 kinghuangdd

它启动后是个web服务的 你可以访问http://localhost:9090

koth avatar Sep 30 '17 12:09 koth