Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_GraphNextOperation (0.22 sec)

  1. tensorflow/c/c_api.h

    // Iterate through the operations of a graph.  To use:
    // size_t pos = 0;
    // TF_Operation* oper;
    // while ((oper = TF_GraphNextOperation(graph, &pos)) != nullptr) {
    //   DoSomethingWithOperation(oper);
    // }
    TF_CAPI_EXPORT extern TF_Operation* TF_GraphNextOperation(TF_Graph* graph,
                                                              size_t* pos);
    
    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)
  2. tensorflow/c/c_api_test.cc

      found_placeholder = false;
      found_scalar_const = false;
      found_add = false;
      bool found_neg = false;
      size_t pos = 0;
      TF_Operation* oper;
      while ((oper = TF_GraphNextOperation(graph, &pos)) != nullptr) {
        if (oper == feed) {
          EXPECT_FALSE(found_placeholder);
          found_placeholder = true;
        } else if (oper == three) {
          EXPECT_FALSE(found_scalar_const);
    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)
  3. tensorflow/c/c_api.cc

      auto iter = graph->name_map.find(oper_name);
      if (iter == graph->name_map.end()) {
        return nullptr;
      } else {
        return ToOperation(iter->second);
      }
    }
    
    TF_Operation* TF_GraphNextOperation(TF_Graph* graph, size_t* pos) {
      if (*pos == 0) {
        // Advance past the first sentinel nodes in every graph (the source & sink).
        *pos += 2;
      } else {
        // Advance to the next node.
    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