Searched refs:HasGradientTape (Results 1 – 1 of 1) sorted by relevance
1843 inline bool HasGradientTape() { return !GetTapeSet()->empty(); } in HasGradientTape() function1846 return HasGradientTape() || HasAccumulator(); in HasAccumulatorOrTape()2030 bool CouldBackprop() { return !*ThreadTapeIsStopped() && HasGradientTape(); }