Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TF_GraphOperationByName (0.55 sec)

  1. tensorflow/c/c_api_test.cc

      ASSERT_TRUE(TF_GraphOperationByName(graph, "feed") != nullptr);
      TF_Operation* oper = ScalarConst(3, graph, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      ASSERT_TRUE(TF_GraphOperationByName(graph, "scalar") != nullptr);
      Neg(oper, graph, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      ASSERT_TRUE(TF_GraphOperationByName(graph, "neg") != nullptr);
    
      // Export to a GraphDef.
    C++
    - Registered: Tue Apr 30 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_experimental.cc

        }
      }
    
      TF_Operation* enqueue_op = TF_GraphOperationByName(
          session->graph,
          tensorflow::strings::StrCat("fifo_queue_enqueue_", tensor_id).c_str());
      if (enqueue_op == nullptr) {
        status->status = tensorflow::errors::Internal(
            "Unable to find the enqueue node in the TF graph.");
        return;
      }
    
      TF_Operation* placeholder_op = TF_GraphOperationByName(
          session->graph,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.h

                                                       TF_Status* status);
    
    // Returns the operation in the graph with `oper_name`. Returns nullptr if
    // no operation found.
    TF_CAPI_EXPORT extern TF_Operation* TF_GraphOperationByName(
        TF_Graph* graph, const char* oper_name);
    
    // Iterate through the operations of a graph.  To use:
    // size_t pos = 0;
    // TF_Operation* oper;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  4. tensorflow/c/c_api.cc

      if (g == nullptr) return;
      g->mu.lock();
      g->delete_requested = true;
      const bool del = g->sessions.empty();
      g->mu.unlock();
      if (del) delete g;
    }
    
    TF_Operation* TF_GraphOperationByName(TF_Graph* graph, const char* oper_name) {
      mutex_lock l(graph->mu);
      auto iter = graph->name_map.find(oper_name);
      if (iter == graph->name_map.end()) {
        return nullptr;
      } else {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
Back to top