- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for TF_DeleteSession (0.15 seconds)
-
tensorflow/c/c_api_internal.h
// string is empty, no mutation has occurred. Otherwise the string is a // description of the mutation suitable for returning to the user. // // Sessions are added to this map in TF_NewSession, and removed in // TF_DeleteSession. // TF_Graph may only / must be deleted when // sessions.size() == 0 && delete_requested == true // // TODO(b/74949947): mutations currently trigger a warning instead of a bad
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Jan 07 04:56:09 GMT 2026 - 7.5K bytes - Click Count (0) -
tensorflow/c/c_api_test.cc
TF_SessionOptions* opts = TF_NewSessionOptions(); TF_Session* sess = TF_NewSession(graph.get(), opts, s); TF_DeleteSessionOptions(opts); const std::string gpu_device_name = GPUDeviceName(sess); TF_DeleteSession(sess, s); CHECK_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); return gpu_device_name; } TEST(CAPI, Version) { EXPECT_STRNE("", TF_Version()); } TEST(CAPI, Status) { TF_Status* s = TF_NewStatus();
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Jan 07 04:56:09 GMT 2026 - 97.3K bytes - Click Count (0) -
tensorflow/c/c_test_util.cc
void CSession::CloseAndDelete(TF_Status* s) { DeleteInputValues(); ResetOutputValues(); if (session_ != nullptr) { TF_CloseSession(session_, s); EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_DeleteSession(session_, s); session_ = nullptr; } } void CSession::DeleteInputValues() { for (size_t i = 0; i < input_values_.size(); ++i) { TF_DeleteTensor(input_values_[i]); }Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 04 05:55:32 GMT 2025 - 17.8K bytes - Click Count (1) -
tensorflow/c/c_api.cc
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; TF_Graph* const graph = s->graph; if (graph != nullptr) { graph->mu.lock();
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 04 05:55:32 GMT 2025 - 102.4K bytes - Click Count (0)