Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_CloseSession (0.18 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: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  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: Sun Jun 16 05:45:23 UTC 2024
    - 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: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K 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: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top