m1 = nn.Sequential(
nn.Embedding(MAX_WORDS, 128),
nn.LSTM(input_size=128, hidden_size=32, num_layers=1,bidirectional = True))
m2 = nn.Sequential(
nn.Linear(64, 128),
nn.ReLU(),
nn.Linear(128, 64),
nn.ReLU(),
nn.Linear(64, 3),
nn.Sigmoid())
output, (h,c) = m1(…)
m2(output)
Note: lstm will return double hidden_size dim if bidirectional is true, or you have to process outputs.