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

Function TFE_Py_TapeWatch

tensorflow/python/eager/pywrap_tfe_src.cc:1683–1692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1681}
1682
1683void TFE_Py_TapeWatch(PyObject* tape, PyObject* tensor) {
1684 if (*ThreadTapeIsStopped()) {
1685 return;
1686 }
1687 tensorflow::int64 tensor_id = FastTensorId(tensor);
1688 if (PyErr_Occurred()) {
1689 return;
1690 }
1691 reinterpret_cast<TFE_Py_Tape*>(tape)->tape->Watch(tensor_id);
1692}
1693
1694bool ListContainsNone(PyObject* list) {
1695 if (list == Py_None) return true;

Callers

nothing calls this directly

Calls 3

ThreadTapeIsStoppedFunction · 0.85
FastTensorIdFunction · 0.85
WatchMethod · 0.80

Tested by

no test coverage detected