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

Function TFE_Py_TapeSetAdd

tensorflow/python/eager/pywrap_tfe_src.cc:1524–1530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1522}
1523
1524void TFE_Py_TapeSetAdd(PyObject* tape) {
1525 Py_INCREF(tape);
1526 if (!GetTapeSet()->insert(reinterpret_cast<TFE_Py_Tape*>(tape)).second) {
1527 // Already exists in the tape set.
1528 Py_DECREF(tape);
1529 }
1530}
1531
1532PyObject* TFE_Py_TapeSetIsEmpty() {
1533 if (*ThreadTapeIsStopped() || !HasTape()) {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected