Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TF_DeleteSession (0.23 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
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sat May 13 00:49:12 GMT 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();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  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]);
      }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  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
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  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();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
Back to top