- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TF_CloseSession (0.32 sec)
-
tensorflow/c/c_api.h
// Close a session. // // Contacts any other processes associated with the session, if applicable. // May not be called after TF_DeleteSession(). TF_CAPI_EXPORT extern void TF_CloseSession(TF_Session*, TF_Status* status); // Destroy a session object. // // Even if error information is recorded in *status, this call discards all
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0) -
tensorflow/c/c_api.cc
graph->sessions[session] = ""; session->last_num_graph_nodes = graph->graph.num_node_ids(); return session; #endif // defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD) } void TF_CloseSession(TF_Session* s, TF_Status* status) { status->status = s->session->Close(); } void TF_DeleteSession(TF_Session* s, TF_Status* status) { status->status = absl::OkStatus(); if (s == nullptr) return;
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Tue May 13 06:30:43 UTC 2025 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_Session* session = TF_LoadSessionFromSavedModel( opt, nullptr, saved_model_dir.c_str(), tags, 1, graph, nullptr, s); EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_DeleteSessionOptions(opt); TF_CloseSession(session, s); EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_DeleteSession(session, s); EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_DeleteGraph(graph); TF_DeleteStatus(s); }
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Fri Dec 27 12:18:10 UTC 2024 - 97K bytes - Viewed (0)