title: What is the last line of this Rnn function means?
body: <p>I am here to ask a noob question.</p>
  <pre><code>class RNN(nn.Module):
      def __init__(self, input_size, hidden_size, num_layers, num_classes):
          super(RNN, self).__init__()
          self.hidden_size = hidden_size
          self.num_layers = num_layers
          self.rnn = nn.RNN(input_size, hidden_size, num_layers, batch_first=True)
          self.fc = nn.Linear(hidden_size*2, num_classes)
      
      def forward(self, x):
          h0 = torch.zeros(self.num_layers*2, x.size(0), self.hidden_size).to(device)
          out, _ = self.rnn(x, h0)  # out: tensor of shape (batch_size, seq_length, hidden_size)
          out = self.fc(out[:, -1, :])
          return out
  </code></pre>
  <p>Here what does <code>out = self.fc(out[:, -1, :])</code> means? And also why there is a &quot;_&quot; in <code>out, _ = self.rnn(x, h0)</code> ?</p>