We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyTorch-Tutorial/tutorial-contents/403_RNN_regressor.py
Line 86 in 68396f5
RuntimeError: input and target shapes do not match: input [10 x 1], target [1 x 10 x 1]
I think y = Variable(torch.from_numpy(y_np[np.newaxis, :, np.newaxis])) should be y = Variable(torch.from_numpy(y_np[:, np.newaxis]))
y = Variable(torch.from_numpy(y_np[np.newaxis, :, np.newaxis]))
y = Variable(torch.from_numpy(y_np[:, np.newaxis]))
could you also update your code to be compatible to version 0.4.0. I mean removing Variable
Thank you
The text was updated successfully, but these errors were encountered:
Thanks, I have updated the code to the new version.
Sorry, something went wrong.
No branches or pull requests
PyTorch-Tutorial/tutorial-contents/403_RNN_regressor.py
Line 86 in 68396f5
I think
y = Variable(torch.from_numpy(y_np[np.newaxis, :, np.newaxis]))
should be
y = Variable(torch.from_numpy(y_np[:, np.newaxis]))
could you also update your code to be compatible to version 0.4.0. I mean removing Variable
Thank you
The text was updated successfully, but these errors were encountered: