NLP_sentiment_classification icon indicating copy to clipboard operation
NLP_sentiment_classification copied to clipboard

RNN input_dim error

Open kimsse0430 opened this issue 4 years ago • 0 comments

안녕하세요 RNN code 수행 시 아래와 같이 input_dim error가 뜨네요. model = RNN(**params) code run

[error]

NameError Traceback (most recent call last) in () ----> 1 model = RNN(**params)

in init(self, vocab_size, embed_size, pad_index, hid_size, n_layers, dropout, n_category) 18 19 self.rnn = nn.RNN(embed_size, hid_size, n_layers, batch_first=True) ---> 20 self.lin = nn.Linear(input_dim, n_category) 21 22

NameError: name 'input_dim' is not defined

kimsse0430 avatar May 19 '20 04:05 kimsse0430