input_embedded = embedding(inputs) # [10,20,30] # embedding之后的数据传入lstm lstm = nn.LSTM(input_size=embedding_dim,hidden_size=hidden_size,num_layers=num_layer,batch_first=True,bidirectional=False) output,(h_n,c_n) = lstm(input_embedded) print(output.size()) #[10,20,18*1 if b...