该encoder会在输入句中嵌入tokens,然后传入torch.nn.LSTM并且返回最终的隐藏状态hidden state。创建的encoder保存为fairseq/models/simple_lstm.py。
確定! 回上一頁