Nov 3, 2020
Hi Fazal,
Thank you for sharing your question,
net = SentimentRNN(vocab_size, output_size, embedding_dim, hidden_dim, n_layers)
This is a step to Instantiate the model / hyperparams.
I think you took the code from this tutorial but here I just explain the important steps you can find the full tutorial in my github so plz go to : https://github.com/lamiaehana/Projects/blob/master/Sentiment_Analysis_rnn_LSTM/Sentiment_Analysis.ipynb
I hope I answered your question, I will wait for your answer Fazal to tell me if it's working for you.