Replies: 2 comments 2 replies
-
Yes, that's correct if you're making predictions and would like to plot them, they should be on the cpu (using See this section for more: https://www.learnpytorch.io/01_pytorch_workflow/#64-making-predictions And if you're still getting issues, please post your code/let me know what's happening. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Right :) But the code in the video and also the notebook moves only the test_preds and not the other variables to cpu - :) |
Beta Was this translation helpful? Give feedback.
2 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.
-
While going through "Section 01: Python workflow" - "Putting Everything together" (Part 4), the plot_predictions does not work with the code by only moving test_preds to cpu. The X_train, X_test and y_train, y_test also have to be moved to cpu for plot_predictions to work. Is my understanding correct? It fails on collab if those objects are also not moved to cpu
Beta Was this translation helpful? Give feedback.
All reactions