预测Ernie模型出错
Created by: wangjiawei04
报错信息
--------------------------------------------
C++ Call Stacks (More useful to developers):
--------------------------------------------
----------------------
Error Message Summary:
----------------------
InvalidArgumentError: Fully Connected input and weigth size do not match. input width: 768,weight height: 772
[Hint: Expected in_mat_dims[1] == w_dims0, but received in_mat_dims[1]:768 != w_dims0:772.] at (/paddle/paddle/fluid/operators/fc_op.h:39)
日志
GLOG_v = 2日志
I0509 12:33:09.808557 15547 dag_view.cpp:68] dag view initialized:
node id: 1
node name: general_reader_0
node type: GeneralReaderOp
I0509 12:33:09.808794 15547 dag_view.cpp:81] op->set_engine_name(general_reader_0)
I0509 12:33:09.808801 15547 dag_view.cpp:48] stage[1] name: workflow1_1
I0509 12:33:09.808807 15547 dag_view.cpp:49] stage[1] node size: 1
I0509 12:33:09.808820 15547 dag_view.cpp:68] dag view initialized:
node id: 2
node name: general_infer_0
node type: GeneralInferOp
I0509 12:33:09.808827 15547 dag_view.cpp:81] op->set_engine_name(general_infer_0)
I0509 12:33:09.808833 15547 dag_view.cpp:91] add op pre name:
current op name: general_infer_0, previous op name: general_reader_0
I0509 12:33:09.808848 15547 dag_view.cpp:48] stage[2] name: workflow1_2
I0509 12:33:09.808854 15547 dag_view.cpp:49] stage[2] node size: 1
I0509 12:33:09.808868 15547 dag_view.cpp:68] dag view initialized:
node id: 3
node name: general_response_0
node type: GeneralResponseOp
I0509 12:33:09.808878 15547 dag_view.cpp:81] op->set_engine_name(general_response_0)
I0509 12:33:09.808884 15547 dag_view.cpp:91] add op pre name:
current op name: general_response_0, previous op name: general_infer_0
I0509 12:33:09.808897 15547 dag_view.cpp:157] vstage->nodes.size(): 1
I0509 12:33:09.809219 15547 general_reader_op.cpp:94] var num: 8
I0509 12:33:09.809270 15547 general_reader_op.cpp:96] start to call load general model_conf op
I0509 12:33:09.809279 15547 general_reader_op.cpp:100] get resource pointer done.
I0509 12:33:09.809288 15547 general_reader_op.cpp:104] print general model config done.
I0509 12:33:09.809296 15547 general_reader_op.cpp:125] var[0] has elem type: 1
I0509 12:33:09.809309 15547 general_reader_op.cpp:143] shape for var[0]: 128
I0509 12:33:09.809316 15547 general_reader_op.cpp:143] shape for var[0]: 1
I0509 12:33:09.809324 15547 general_reader_op.cpp:147] var[0] is tensor, capacity: 128
I0509 12:33:09.809598 15547 general_reader_op.cpp:125] var[1] has elem type: 0
I0509 12:33:09.809633 15547 general_reader_op.cpp:143] shape for var[1]: 128
I0509 12:33:09.809643 15547 general_reader_op.cpp:143] shape for var[1]: 1
I0509 12:33:09.809651 15547 general_reader_op.cpp:147] var[1] is tensor, capacity: 128
I0509 12:33:09.809659 15547 general_reader_op.cpp:125] var[2] has elem type: 0
I0509 12:33:09.809665 15547 general_reader_op.cpp:143] shape for var[2]: 128
I0509 12:33:09.809671 15547 general_reader_op.cpp:143] shape for var[2]: 1
I0509 12:33:09.809676 15547 general_reader_op.cpp:147] var[2] is tensor, capacity: 128
I0509 12:33:09.809684 15547 general_reader_op.cpp:125] var[3] has elem type: 1
I0509 12:33:09.809690 15547 general_reader_op.cpp:143] shape for var[3]: 128
I0509 12:33:09.809696 15547 general_reader_op.cpp:143] shape for var[3]: 1
I0509 12:33:09.809702 15547 general_reader_op.cpp:147] var[3] is tensor, capacity: 128
I0509 12:33:09.809708 15547 general_reader_op.cpp:125] var[4] has elem type: 0
I0509 12:33:09.809715 15547 general_reader_op.cpp:143] shape for var[4]: 128
I0509 12:33:09.809720 15547 general_reader_op.cpp:143] shape for var[4]: 1
I0509 12:33:09.809726 15547 general_reader_op.cpp:147] var[4] is tensor, capacity: 128
I0509 12:33:09.809734 15547 general_reader_op.cpp:125] var[5] has elem type: 0
I0509 12:33:09.809743 15547 general_reader_op.cpp:143] shape for var[5]: 128
I0509 12:33:09.809749 15547 general_reader_op.cpp:143] shape for var[5]: 1
I0509 12:33:09.809758 15547 general_reader_op.cpp:147] var[5] is tensor, capacity: 128
I0509 12:33:09.809764 15547 general_reader_op.cpp:125] var[6] has elem type: 0
I0509 12:33:09.809770 15547 general_reader_op.cpp:143] shape for var[6]: 128
I0509 12:33:09.809777 15547 general_reader_op.cpp:143] shape for var[6]: 1
I0509 12:33:09.809782 15547 general_reader_op.cpp:147] var[6] is tensor, capacity: 128
I0509 12:33:09.809788 15547 general_reader_op.cpp:125] var[7] has elem type: 0
I0509 12:33:09.809793 15547 general_reader_op.cpp:143] shape for var[7]: 128
I0509 12:33:09.809799 15547 general_reader_op.cpp:143] shape for var[7]: 1
I0509 12:33:09.809805 15547 general_reader_op.cpp:147] var[7] is tensor, capacity: 128
I0509 12:33:09.809813 15547 general_reader_op.cpp:178] var[0] is tensor and capacity=128
I0509 12:33:09.809819 15547 general_reader_op.cpp:178] var[1] is tensor and capacity=128
I0509 12:33:09.809828 15547 general_reader_op.cpp:178] var[2] is tensor and capacity=128
I0509 12:33:09.809834 15547 general_reader_op.cpp:178] var[3] is tensor and capacity=128
I0509 12:33:09.809849 15547 general_reader_op.cpp:178] var[4] is tensor and capacity=128
I0509 12:33:09.809854 15547 general_reader_op.cpp:178] var[5] is tensor and capacity=128
I0509 12:33:09.809860 15547 general_reader_op.cpp:178] var[6] is tensor and capacity=128
I0509 12:33:09.809868 15547 general_reader_op.cpp:178] var[7] is tensor and capacity=128
I0509 12:33:09.809876 15547 general_reader_op.cpp:216] output size: 8
I0509 12:33:09.809882 15547 general_reader_op.cpp:224] read data from client success
I0509 12:33:09.809907 15547 op.cpp:159] general_reader_0_time=[949]
I0509 12:33:09.809918 15547 dag_view.cpp:157] vstage->nodes.size(): 1
I0509 12:33:09.809928 15547 general_infer_op.cpp:39] Going to run inference
I0509 12:33:09.809938 15547 general_infer_op.cpp:50] Get precedent op name: general_reader_0
I0509 12:33:09.810010 15547 general_infer_op.cpp:61] input batch size: 1
I0509 12:33:09.810021 15547 general_infer_op.cpp:65] infer batch size: 1
复现步骤
wget ftp://yq01-sys-rpm-ps0579.yq01.baidu.com/home/disk3/fanjun/serving/simnet/l3_posttrain_simnet.tar.gz
tar xf l3_posttrain_simnet.tar.gz
cd l3_posttrain_simnet
python -m paddle_serving_server.serve --model model_server/ --port 9015
head -n 1 test_qt | python client_test.py