-
While trying to functionizing the train and test steps, when trying to measure the time i receive this error on the accuracy_fn! RuntimeError: Inference tensors cannot be saved for backward. To work around you can make a clone to get a normal tensor and use it in autograd. |
Beta Was this translation helpful? Give feedback.
Answered by
mrdbourke
Aug 23, 2022
Replies: 1 comment 10 replies
-
Hi @deordered, Do you mind sharing your code (share as much as possible, as in, the code and error too)? Where about in the sections are you receiving this error? You can see each of the sections here: https://www.learnpytorch.io/03_pytorch_computer_vision/ |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
mrdbourke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @deordered,
Do you mind sharing your code (share as much as possible, as in, the code and error too)?
Where about in the sections are you receiving this error?
You can see each of the sections here: https://www.learnpytorch.io/03_pytorch_computer_vision/