Lazy detach. (#1242)

This commit is contained in:
Laurent Mazare
2023-11-02 08:33:48 +01:00
committed by GitHub
parent 6c990a33ea
commit fbd69f952c
2 changed files with 20 additions and 10 deletions

View File

@ -920,6 +920,10 @@ impl BackpropOp {
};
Self(op)
}
pub(crate) fn is_none(&self) -> bool {
self.0.is_none()
}
}
impl std::ops::Deref for BackpropOp {