Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_OperationGetControlInputs (0.12 sec)

  1. tensorflow/c/c_api_test.cc

      EXPECT_EQ(0, TF_OperationNumControlInputs(scalar));
      EXPECT_EQ(0, TF_OperationGetControlInputs(scalar, control_ops, 100));
      EXPECT_EQ(0, TF_OperationNumControlOutputs(scalar));
      EXPECT_EQ(0, TF_OperationGetControlOutputs(scalar, control_ops, 100));
    
      EXPECT_EQ(0, TF_OperationNumControlInputs(feed));
      EXPECT_EQ(0, TF_OperationGetControlInputs(feed, control_ops, 100));
      EXPECT_EQ(0, TF_OperationNumControlOutputs(feed));
    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.h

    // TF_OperationNumControlInputs(oper)).  Returns the number of control
    // inputs (should match TF_OperationNumControlInputs(oper)).
    TF_CAPI_EXPORT extern int TF_OperationGetControlInputs(
        TF_Operation* oper, TF_Operation** control_inputs, int max_control_inputs);
    
    // Get the number of operations that have `*oper` as a control input.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.cc

      int count = 0;
      for (const auto* edge : oper->node.in_edges()) {
        if (edge->IsControlEdge() && !edge->src()->IsSource()) {
          ++count;
        }
      }
      return count;
    }
    
    int TF_OperationGetControlInputs(TF_Operation* oper,
                                     TF_Operation** control_inputs,
                                     int max_control_inputs) {
      int count = 0;
      for (const auto* edge : oper->node.in_edges()) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top