Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TF_OperationNumControlOutputs (0.13 seconds)

  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));
    
    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.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;
    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