Matrix.cpp:2769] Check failed: label.getSize() == numSamples (13 vs. 127)
Created by: 13488862011
使用demo里的semantic_role_labeling 做训练时,出现以下的错;训练目标对时序的序列进行预测 sh train.sh Tue Nov 8 16:31:54 CST 2016 I1108 16:31:54.986636 10316 Util.cpp:144] commandline: /home/liupeng07/.jumbo/bin/../opt/paddle/bin/paddle_trainer --config=./zj_lstm.py --save_dir=./output --trainer_count=11 --log_period=10 --num_passes=200 --use_gpu=false --show_parameter_stats_period=10 --test_all_data_in_one_period=1 I1108 16:31:54.986928 10316 Util.cpp:113] Calling runInitFunctions I1108 16:31:54.987305 10316 Util.cpp:126] Call runInitFunctions done. [INFO 2016-11-08 16:31:58,187 networks.py:1122] The input order is [word_data, target] [INFO 2016-11-08 16:31:58,187 networks.py:1129] The output order is [cost_0] I1108 16:31:59.038832 10316 Trainer.cpp:169] trainer mode: Normal I1108 16:32:01.214412 10316 PyDataProvider2.cpp:219] loading dataprovider zj_dataprovider::process I1108 16:32:01.696892 10316 PyDataProvider2.cpp:219] loading dataprovider zj_dataprovider::process I1108 16:32:01.697199 10316 GradientMachine.cpp:134] Initing parameters.. I1108 16:32:11.124802 10316 GradientMachine.cpp:141] Init parameters done. I1108 16:32:11.483523 10524 ThreadLocal.cpp:39] thread use undeterministic rand seed:10525 I1108 16:32:11.543462 10521 ThreadLocal.cpp:39] thread use undeterministic rand seed:10522 I1108 16:32:11.554527 10515 ThreadLocal.cpp:39] thread use undeterministic rand seed:10516 I1108 16:32:11.556932 10518 ThreadLocal.cpp:39] thread use undeterministic rand seed:10519 I1108 16:32:11.560775 10517 ThreadLocal.cpp:39] thread use undeterministic rand seed:10518 I1108 16:32:11.564555 10519 ThreadLocal.cpp:39] thread use undeterministic rand seed:10520 I1108 16:32:11.566588 10520 ThreadLocal.cpp:39] thread use undeterministic rand seed:10521 I1108 16:32:11.566684 10523 ThreadLocal.cpp:39] thread use undeterministic rand seed:10524 I1108 16:32:11.567601 10516 ThreadLocal.cpp:39] thread use undeterministic rand seed:10517 I1108 16:32:11.574527 10525 ThreadLocal.cpp:39] thread use undeterministic rand seed:10526 I1108 16:32:11.577190 10522 ThreadLocal.cpp:39] thread use undeterministic rand seed:10523 F1108 16:32:12.580016 10517 Matrix.cpp:2769] Check failed: label.getSize() == numSamples (13 vs. 127)