Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for control_inputs (0.16 sec)

  1. tensorflow/c/c_api_test.cc

      // inherit them from input)
      TF_Operation* control_inputs[100];
      int num_control_inputs = TF_OperationGetControlInputs(
          scalar3, control_inputs, TF_OperationNumControlInputs(scalar3));
      ASSERT_EQ(2, num_control_inputs);
      EXPECT_EQ(feed, control_inputs[0]);
      EXPECT_EQ(feed2, control_inputs[1]);
    
      num_control_inputs = TF_OperationGetControlInputs(
          feed3, control_inputs, TF_OperationNumControlInputs(feed3));
    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

    // Get list of all control inputs to an operation.  `control_inputs` must
    // point to an array of length `max_control_inputs` (ideally set to
    // 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);
    
    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

                                     TF_Operation** control_inputs,
                                     int max_control_inputs) {
      int count = 0;
      for (const auto* edge : oper->node.in_edges()) {
        if (edge->IsControlEdge() && !edge->src()->IsSource()) {
          if (count < max_control_inputs) {
            control_inputs[count] = ToOperation(edge->src());
          }
          ++count;
        }
      }
    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