MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _push_tape

Method _push_tape

tensorflow/python/eager/backprop.py:811–820  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

809 self._pop_tape()
810
811 def _push_tape(self):
812 if self._recording:
813 raise ValueError("Tape is already recording.")
814 if self._tape is None:
815 self._tape = tape.push_new_tape(
816 persistent=self._persistent,
817 watch_accessed_variables=self._watch_accessed_variables)
818 else:
819 tape.push_tape(self._tape)
820 self._recording = True
821
822 def _pop_tape(self):
823 if not self._recording:

Callers 6

__enter__Method · 0.95
stop_recordingMethod · 0.95
resetMethod · 0.95
jacobianMethod · 0.95
loop_fnMethod · 0.95
batch_jacobianMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected