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

Function TFE_Py_TapeWatchVariable

tensorflow/python/eager/pywrap_tfe_src.cc:1793–1798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1791}
1792
1793void TFE_Py_TapeWatchVariable(PyObject* tape, PyObject* variable) {
1794 if (*ThreadTapeIsStopped()) {
1795 return;
1796 }
1797 reinterpret_cast<TFE_Py_Tape*>(tape)->tape->WatchVariable(variable);
1798}
1799
1800PyObject* TFE_Py_TapeWatchedVariables(PyObject* tape) {
1801 return reinterpret_cast<TFE_Py_Tape*>(tape)->tape->GetVariablesAsPyTuple();

Callers

nothing calls this directly

Calls 2

ThreadTapeIsStoppedFunction · 0.85
WatchVariableMethod · 0.80

Tested by

no test coverage detected