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

Function TFE_DeleteContextCapsule

tensorflow/python/eager/pywrap_tfe_src.cc:919–923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917PyObject* TFE_Py_UID() { return PyLong_FromLongLong(get_uid()); }
918
919void TFE_DeleteContextCapsule(PyObject* context) {
920 TFE_Context* ctx =
921 reinterpret_cast<TFE_Context*>(PyCapsule_GetPointer(context, nullptr));
922 TFE_DeleteContext(ctx);
923}
924
925static tensorflow::int64 MakeInt(PyObject* integer) {
926#if PY_MAJOR_VERSION >= 3

Callers

nothing calls this directly

Calls 1

TFE_DeleteContextFunction · 0.85

Tested by

no test coverage detected