Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_OperationNumControlOutputs (0.28 sec)

  1. tensorflow/c/c_api_test.cc

      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));
      EXPECT_EQ(0, TF_OperationGetControlOutputs(feed, control_ops, 100));
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  2. tensorflow/c/c_api.h

    // the graph.
    TF_CAPI_EXPORT extern int TF_OperationNumControlOutputs(TF_Operation* oper);
    
    // Get the list of operations that have `*oper` as a control input.
    // `control_outputs` must point to an array of length at least
    // `max_control_outputs` (ideally set to
    // TF_OperationNumControlOutputs(oper)). Beware that a concurrent
    // modification of the graph can increase the number of control
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  3. tensorflow/c/c_api.cc

          if (count < max_control_inputs) {
            control_inputs[count] = ToOperation(edge->src());
          }
          ++count;
        }
      }
      return count;
    }
    
    int TF_OperationNumControlOutputs(TF_Operation* oper) {
      int count = 0;
      for (const auto* edge : oper->node.out_edges()) {
        if (edge->IsControlEdge() && !edge->dst()->IsSink()) {
          ++count;
        }
      }
      return count;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
Back to top