songyouwei / ABSA-PyTorch

Aspect Based Sentiment Analysis, PyTorch Implementations. 基于方面的情感分析,使用PyTorch实现。
MIT License
2.02k stars 526 forks source link

关于squeeze_embedding.py #80

Closed CBLBY closed 5 years ago

CBLBY commented 5 years ago

line33~35行 """unpack: out""" out = torch.nn.utils.rnn.pad_packed_sequence(x_emb_p, batch_first=self.batch_first) out = out[0] #

此时为什么执行 out = out[0]