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

Function TapeCouldPossiblyRecord

tensorflow/python/eager/pywrap_tfe_src.cc:1596–1607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1594}
1595
1596bool TapeCouldPossiblyRecord(PyObject* tensors) {
1597 if (tensors == Py_None) {
1598 return false;
1599 }
1600 if (*ThreadTapeIsStopped()) {
1601 return false;
1602 }
1603 if (!HasTape()) {
1604 return false;
1605 }
1606 return true;
1607}
1608
1609PyObject* TFE_Py_TapeSetShouldRecord(PyObject* tensors) {
1610 if (!TapeCouldPossiblyRecord(tensors)) {

Callers 2

Calls 1

ThreadTapeIsStoppedFunction · 0.85

Tested by

no test coverage detected