Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CloseAndDelete (0.05 sec)

  1. tensorflow/c/c_test_util.h

      void SetOutputs(const std::vector<TF_Output>& outputs);
      void SetTargets(std::initializer_list<TF_Operation*> targets);
    
      void Run(TF_Status* s);
    
      void CloseAndDelete(TF_Status* s);
    
      TF_Tensor* output_tensor(int i) { return output_values_[i]; }
    
      TF_Session* mutable_session() { return session_; }
    
     private:
      void DeleteInputValues();
      void ResetOutputValues();
    Registered: Tue Dec 30 12:39:10 UTC 2025
    - Last Modified: Thu Aug 09 01:06:53 UTC 2018
    - 6K bytes
    - Viewed (0)
  2. tensorflow/c/c_test_util.cc

      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);
      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      TF_DeleteStatus(s);
    }
    
    void CSession::SetInputs(
        std::vector<std::pair<TF_Operation*, TF_Tensor*>> inputs) {
      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)
  3. tensorflow/c/c_api_test.cc

      ASSERT_EQ(sizeof(int32), TF_TensorByteSize(out));
      output_contents = static_cast<int32*>(TF_TensorData(out));
      EXPECT_EQ(-(7 + 2), *output_contents);
    
      // Clean up
      csession.CloseAndDelete(s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      TF_DeleteGraph(graph);
      TF_DeleteStatus(s);
    }
    
    // If `device` is non-empty, run Min op on that device.
    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