mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
Lazy detach. (#1242)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user