Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_OperationOutputConsumers (0.46 sec)

  1. tensorflow/c/c_api_test.cc

      TF_Input feed_port;
      EXPECT_EQ(1, TF_OperationOutputConsumers(TF_Output{feed, 0}, &feed_port, 1));
      EXPECT_EQ(add, feed_port.oper);
      EXPECT_EQ(0, feed_port.index);
    
      // The scalar const oper also has a consumer.
      ASSERT_EQ(1, TF_OperationOutputNumConsumers(TF_Output{three, 0}));
      TF_Input three_port;
      EXPECT_EQ(1,
                TF_OperationOutputConsumers(TF_Output{three, 0}, &three_port, 1));
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Fri Dec 27 12:18:10 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.h

    // modification of the graph can increase the number of consumers of
    // an operation.  Returns the number of output consumers (should match
    // TF_OperationOutputNumConsumers(oper_out)).
    TF_CAPI_EXPORT extern int TF_OperationOutputConsumers(TF_Output oper_out,
                                                          TF_Input* consumers,
                                                          int max_consumers);
    
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - 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_out.oper->node.out_edges()) {
        if (edge->src_output() == oper_out.index) {
          ++count;
        }
      }
      return count;
    }
    
    int TF_OperationOutputConsumers(TF_Output oper_out, TF_Input* consumers,
                                    int max_consumers) {
      int count = 0;
      for (const auto* edge : oper_out.oper->node.out_edges()) {
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue May 13 06:30:43 UTC 2025
    - 102.3K bytes
    - Viewed (0)
Back to top