Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for control_inputs (0.05 seconds)

  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));
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 97.3K bytes
    - Click Count (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);
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Click Count (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;
        }
      }
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 102.4K bytes
    - Click Count (0)
Back to Top