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

Function TF_DeleteGraph

tensorflow/c/c_api.cc:1528–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1526TF_Graph* TF_NewGraph() { return new TF_Graph; }
1527
1528void TF_DeleteGraph(TF_Graph* g) {
1529 if (g == nullptr) return;
1530 g->mu.lock();
1531 g->delete_requested = true;
1532 const bool del = g->sessions.empty();
1533 g->mu.unlock();
1534 if (del) delete g;
1535}
1536
1537TF_Operation* TF_GraphOperationByName(TF_Graph* graph, const char* oper_name) {
1538 mutex_lock l(graph->mu);

Callers 12

~CApiWhileLoopTestMethod · 0.85
~CApiFunctionTestMethod · 0.85
FreeWhileResourcesFunction · 0.85
TESTFunction · 0.85
RunMinTestFunction · 0.85
~CApiColocationTestMethod · 0.85
~CApiGradientsTestMethod · 0.85
~CApiAttributesTestMethod · 0.85
TESTFunction · 0.85

Calls 3

lockMethod · 0.45
emptyMethod · 0.45
unlockMethod · 0.45

Tested by 9

~CApiWhileLoopTestMethod · 0.68
~CApiFunctionTestMethod · 0.68
TESTFunction · 0.68
RunMinTestFunction · 0.68
~CApiColocationTestMethod · 0.68
~CApiGradientsTestMethod · 0.68
~CApiAttributesTestMethod · 0.68
TESTFunction · 0.68