sh script/zh_task/ernie_base/run_msra_ner.sh报错
Created by: yinjuncheng
我在按照教程运行sh script/zh_task/ernie_base/run_msra_ner.sh时报以下错误,请问可能是什么问题?
File "/home/juncheng/anaconda3/envs/paddle/lib/python3.7/site-packages/paddle/fluid/framework.py", line 2423, in append_op attrs=kwargs.get("attrs", None)) File "/home/juncheng/anaconda3/envs/paddle/lib/python3.7/site-packages/paddle/fluid/layer_helper.py", line 43, in append_op return self.main_program.current_block().append_op(*args, **kwargs) File "/home/juncheng/anaconda3/envs/paddle/lib/python3.7/site-packages/paddle/fluid/layers/nn.py", line 5697, in sequence_unpad outputs={'Out': out}) File "/home/juncheng/project/ernie/ERNIE-develop/finetune/sequence_label.py", line 79, in create_model lod_labels = fluid.layers.sequence_unpad(labels, seq_lens) File "run_sequence_labeling.py", line 109, in main ernie_config=ernie_config) File "run_sequence_labeling.py", line 354, in main(args)
Error Message Summary:
PaddleCheckError: Expected len_dims.size() == 1, but received len_dims.size():2 != 1:1. The shape of Input(Length) should be [batch_size]. at [/paddle/paddle/fluid/operators/sequence_ops/sequence_unpad_op.cc:41] [operator < sequence_unpad > error]