Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_CloseSession (0.33 sec)

  1. tensorflow/c/c_test_util.cc

      DeleteInputValues();
    }
    
    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() {
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Sat Oct 04 05:55:32 UTC 2025
    - 17.8K bytes
    - Viewed (1)
  2. 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 Dec 30 12:39:10 UTC 2025
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  3. 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 Dec 30 12:39:10 UTC 2025
    - Last Modified: Sat Oct 04 05:55:32 UTC 2025
    - 102.4K bytes
    - Viewed (0)
  4. 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 Dec 30 12:39:10 UTC 2025
    - Last Modified: Mon Nov 17 00:00:38 UTC 2025
    - 97K bytes
    - Viewed (0)
Back to top