Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CloseAndDelete (0.21 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();
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 09 01:06:53 GMT 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();
    C++
    - Registered: Tue Apr 30 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

      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.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top