Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TF_DeleteSession (0.06 sec)

  1. 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
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Sat May 13 00:49:12 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. tensorflow/c/c_api.h

        TF_Graph* graph, TF_Buffer* meta_graph_def, TF_Status* status);
    
    // 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 Dec 30 12:39:10 UTC 2025
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  5. 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)
Back to top