There was an error while loading. Please reload this page.
1 parent 33ac9cd commit 80d067eCopy full SHA for 80d067e
torch/csrc/autograd/variable.cpp
@@ -100,7 +100,7 @@ auto SavedVariable::unpack(std::shared_ptr<Function> saved_for) -> std::shared_p
100
101
const char* ERR_BACKWARD_TWICE =
102
"Trying to backward through the graph a second time, but the buffers have "
103
- "already been freed. Specify retain_variables=True when calling backward "
+ "already been freed. Specify retain_graph=True when calling backward "
104
"the first time.";
105
106
}} // namespace torch::autograd
0 commit comments