IndexError: index out of range in self
问题 i got this error in runtime, can you please help me? my vocab size is 76, as shown in below, Some of my codes are below: class LSTMClassifier(nn.Module): def __init__(self, embed_size, hidden_size, vocab_size, num_layers, num_classes, batch_size): super(LSTMClassifier, self).__init__() self.embed_size = embed_size self.hidden_size = hidden_size self.batch_size = batch_size self.num_layers = num_layers self.embedding = nn.Embedding(vocab_size, embed_size) # a lookup table self.lstm = nn.LSTM