Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getOutputs (0.17 sec)

  1. tensorflow/c/c_api_test.cc

      // Create a session for this graph.
      CSession csession(graph, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Run the graph.
      csession.SetInputs({{feed, Int32Tensor(3)}});
      csession.SetOutputs({add});
      csession.Run(s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      TF_Tensor* out = csession.output_tensor(0);
      ASSERT_TRUE(out != nullptr);
      EXPECT_EQ(TF_INT32, TF_TensorType(out));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_function_test.cc

        // Create a session for this graph
        CSession csession(host_graph_, s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
        // Run
        csession.SetInputs(inputs);
        csession.SetOutputs(outputs);
        csession.Run(s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
        // Check results
        for (int i = 0; i < expected_results.size(); ++i) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
Back to top