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

Method __enter__

tensorflow/python/eager/backprop.py:801–804  ·  view source on GitHub ↗

Enters a context inside which operations are recorded on this tape.

(self)

Source from the content-addressed store, hash-verified

799 context.context().start_step()
800
801 def __enter__(self):
802 """Enters a context inside which operations are recorded on this tape."""
803 self._push_tape()
804 return self
805
806 def __exit__(self, typ, value, traceback):
807 """Exits the recording context, no further operations are traced."""

Callers

nothing calls this directly

Calls 1

_push_tapeMethod · 0.95

Tested by

no test coverage detected