Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TF_NewSession (0.21 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
      //
    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_test_util.cc

      return names;
    }
    
    CSession::CSession(TF_Graph* graph, TF_Status* s, bool use_XLA) {
      TF_SessionOptions* opts = TF_NewSessionOptions();
      TF_EnableXLACompilation(opts, use_XLA);
      session_ = TF_NewSession(graph, opts, s);
      TF_DeleteSessionOptions(opts);
    }
    
    CSession::CSession(TF_Session* session) : session_(session) {}
    
    CSession::~CSession() {
      TF_Status* s = TF_NewStatus();
      CloseAndDelete(s);
    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)
  3. tensorflow/c/c_api_test.cc

                                                                 TF_DeleteGraph);
    
      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);
    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)
  4. tensorflow/c/c_api.h

    // kept alive for the lifetime of the returned TF_Session. New nodes can still
    // be added to `graph` after this call.
    TF_CAPI_EXPORT extern TF_Session* TF_NewSession(TF_Graph* graph,
                                                    const TF_SessionOptions* opts,
                                                    TF_Status* status);
    
    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

    TF_Session::TF_Session(tensorflow::Session* s, TF_Graph* g)
        : session(s), graph(g), last_num_graph_nodes(0), extend_before_run(true) {}
    
    TF_Session* TF_NewSession(TF_Graph* graph, const TF_SessionOptions* opt,
                              TF_Status* status) {
      Session* session;
      status->status = NewSession(opt->options, &session);
      if (status->status.ok()) {
    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