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

Function FreeWhileResources

tensorflow/c/c_api.cc:1902–1908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1900#endif // !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
1901
1902void FreeWhileResources(const TF_WhileParams* params) {
1903 TF_DeleteGraph(params->cond_graph);
1904 TF_DeleteGraph(params->body_graph);
1905 delete[] params->cond_inputs;
1906 delete[] params->body_inputs;
1907 delete[] params->body_outputs;
1908}
1909
1910TF_WhileParams EmptyWhileParams() {
1911 return {0, nullptr, nullptr, {nullptr, 0},

Callers 3

TF_NewWhileFunction · 0.85
TF_FinishWhileFunction · 0.85
TF_AbortWhileFunction · 0.85

Calls 1

TF_DeleteGraphFunction · 0.85

Tested by

no test coverage detected