Code help for Simple RNN text sequence #8356
Unanswered
sushmit86
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 5 replies
-
change the following line : out, hiddens = self.rnn(X, hiddens) to out, hiddens = self.rnn(torch.FloatTensor(X), hiddens) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to RNN and Pytorch lightning and was trying to convert a simple RNN to lightning. Here is the regular Pytorch code
and this is what I was trying:
I know it's wrong in several ways. Can someone help me with this?
Beta Was this translation helpful? Give feedback.
All reactions