fix compile error

This commit is contained in:
Dun Liang 2020-07-08 16:25:45 +08:00
parent f250fdd53b
commit 130ecea0c5
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ struct VarHolder {
/* detach the grad */
// @pyjt(detach)
inline VarHolder* detach() {
return new VarHolder(move(jittor::detach(var)));
return new VarHolder(jittor::detach(var));
}