Skip to content

Commit 80d067e

Browse files
Kaixhinsoumith
authored andcommitted
retain_variables -> retain_graph (pytorch#2107)
Closes pytorch#1928
1 parent 33ac9cd commit 80d067e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/csrc/autograd/variable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ auto SavedVariable::unpack(std::shared_ptr<Function> saved_for) -> std::shared_p
100100

101101
const char* ERR_BACKWARD_TWICE =
102102
"Trying to backward through the graph a second time, but the buffers have "
103-
"already been freed. Specify retain_variables=True when calling backward "
103+
"already been freed. Specify retain_graph=True when calling backward "
104104
"the first time.";
105105

106106
}} // namespace torch::autograd

0 commit comments

Comments
 (0)