- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TF_DeleteSession (0.09 sec)
-
tensorflow/c/c_api_test.cc
TF_SessionOptions* opts = TF_NewSessionOptions(); TF_Session* sess = TF_NewSession(graph.get(), opts, s); TF_DeleteSessionOptions(opts); const 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();
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Mon Nov 17 00:00:38 UTC 2025 - 97K bytes - Viewed (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]); }Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Sat Oct 04 05:55:32 UTC 2025 - 17.8K bytes - Viewed (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();
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Sat Oct 04 05:55:32 UTC 2025 - 102.4K bytes - Viewed (0)