Traceback (most recent call last):


 "<stdin>", line 959, in <module>


 "<stdin>", line 955, in main


 "<stdin>", line 356, in run


 "<stdin>", line 489, in install


 "<stdin>", line 509, in make_lib


 "<stdin>", line 536, in _make_lib
RuntimeError: Could not find poetry-0.12.17-freebsd11.sha256sum file

Traceback (most recent call last):


 "/Users/wei/Desktop/pythonDemo/nlpdazuoye/nlp_absa/demo2.py", line 479, in <module>

train()


 "/Users/wei/Desktop/pythonDemo/nlpdazuoye/nlp_absa/demo2.py", line 475, in train

ins.run()


 "/Users/wei/Desktop/pythonDemo/nlpdazuoye/nlp_absa/demo2.py", line 403, in run

best_model_path = self._train(criterion, optimizer, train_data_loader, val_data_loader) # 保存最好的模型


 "/Users/wei/Desktop/pythonDemo/nlpdazuoye/nlp_absa/demo2.py", line 327, in _train

outputs = self.model(inputs)


 "/Users/wei/anaconda3/envs/tensorflow/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__

result = self.forward(*input, **kwargs)


 "/Users/wei/Desktop/pythonDemo/nlpdazuoye/nlp_absa/demo2.py", line 218, in forward

target = self.squeeze_embedding(target, target_len)


 "/Users/wei/anaconda3/envs/tensorflow/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__

result = self.forward(*input, **kwargs)


 "/Users/wei/Desktop/pythonDemo/nlpdazuoye/nlp_absa/demo2.py", line 70, in forward

x_emb_p = torch.nn.utils.rnn.pack_padded_sequence(x, x_len, batch_first=self.batch_first)


 "/Users/wei/anaconda3/envs/tensorflow/lib/python3.6/site-packages/torch/nn/utils/rnn.py", line 268, in pack_padded_sequence

torch._C._VariableFunctions._pack_padded_sequence(input, lengths, batch_first)
RuntimeError: Length of all samples has to be greater than 0, but found an element in 'lengths' that is <= 0
