mirror of https://github.com/Jittor/Jittor
fix compile error
This commit is contained in:
parent
f250fdd53b
commit
130ecea0c5
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue