mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
Expose the track-op method. (#1148)
This commit is contained in:
@ -449,7 +449,7 @@ impl Tensor {
|
|||||||
|
|
||||||
/// Returns true if the computation graph should track this op, that is if it is
|
/// Returns true if the computation graph should track this op, that is if it is
|
||||||
/// a variable or if it has some variable as dependencies.
|
/// a variable or if it has some variable as dependencies.
|
||||||
pub(crate) fn track_op(&self) -> bool {
|
pub fn track_op(&self) -> bool {
|
||||||
self.is_variable || self.op.is_some()
|
self.is_variable || self.op.is_some()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user