Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for node12 (0.25 sec)

  1. tensorflow/c/c_api.cc

          // Fill graph_def with nodes with ids in the range
          // [session->last_num_graph_nodes, num_nodes), that is the nodes
          // added since the last TF_SessionRun() call.
          for (auto id = session->last_num_graph_nodes; id < num_nodes; ++id) {
            Node* const node = graph.FindNodeId(id);
            if (node != nullptr && node->IsOp()) {
              NodeDef* const node_def = graph_def.add_node();
    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)
  2. tensorflow/c/c_api_function.cc

        TF_EXCLUSIVE_LOCKS_REQUIRED(fn_body->mu) {
      if (num_opers == -1) {
        for (const Node* node : fn_body->graph.op_nodes()) {
          const auto& iter = input_nodes.find(node);
          if (iter == input_nodes.end()) {
            // This node is not referenced in inputs. Add it to the body.
            body_nodes->push_back(node);
          } else {
            // This node is referenced in inputs. Currently, we place an
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  3. tensorflow/c/experimental/grappler/grappler_test.cc

                                nodes_preserved.size(), storage.get(), storage_size,
                                status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      for (size_t i = 0; i < nodes_preserved.size(); ++i) {
        EXPECT_EQ(nodes_preserved.find(string(static_cast<const char*>(values[i]),
                                              lens[i])) != nodes_preserved.end(),
                  true);
      }
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

            // parallel device.
            device_(device),
            executor_(
                TFE_NewExecutor(is_async, /*enable_streaming_enqueue=*/true,
                                /*in_flight_nodes_limit=*/in_flight_nodes_limit)),
            op_(nullptr),
            thread_(tensorflow::Env::Default()->StartThread(
                tensorflow::ThreadOptions(), "parallel_device_execute",
                std::bind(&DeviceThread::Run, this))) {}
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  5. tensorflow/c/c_api.h

    //   use them in new code.
    // - Every node in the function's body must have all of its inputs (including
    //   control inputs). In other words, for every node in the body, each input
    //   must be either listed in `inputs` or must come from another node in
    //   the body. In particular, it is an error to have a control edge going from
    //   a node outside of the body into a node in the body. This applies to control
    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)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      // Eager async execution is only supported when remote eager is not in use
      // (b/157523095).
      explicit ParallelDevice(const std::vector<std::string>& devices,
                              bool is_async = false, int in_flight_nodes_limit = 0);
    
      ~ParallelDevice();
    
      // Helper to copy a tensor handle from another device once for each component
      // of the ParallelDevice.
      //
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_distributed_test.cc

                             bool* control_rets_updated) override {
        // Inject failure to function instantiation if finding a node that contains
        // the given node name (error_node_) and requested device (error_device_).
        for (const auto node : graph->get()->nodes()) {
          if (node->name().find(error_node_) != string::npos &&
              node->requested_device() == error_device_) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_internal.h

                              const char* node_name)
          : node_builder(node_name, op_type, g->graph.op_registry()), graph(g) {}
    
      tensorflow::NodeBuilder node_builder;
      TF_Graph* graph;
      std::set<tensorflow::string> colocation_constraints;
    };
    
    struct TF_Operation {
      tensorflow::Node node;
    
     private:
      ~TF_Operation() = default;
    };
    
    struct TF_Session {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat May 13 00:49:12 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_experimental_test.cc

        TFE_DeleteContextOptions(opts);
        TFE_Executor* executor = TFE_NewExecutor(
            /*is_async=*/false, /*enable_streaming_enqueue=*/true,
            /*in_flight_nodes_limit=*/0);
        TFE_ContextSetExecutorForThread(ctx, executor);
    
        TFE_DeleteContext(ctx);
        TFE_DeleteExecutor(executor);
      }
    
      {
        TFE_ContextOptions* opts = TFE_NewContextOptions();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  10. tensorflow/c/c_api_test.cc

    TEST(CAPI, MessageBufferConversion) {
      NodeDef node_in, node_out;
      node_in.set_name("Test name");
      node_in.set_op("Test op");
    
      TF_Buffer* buffer = TF_NewBuffer();
      TF_CHECK_OK(MessageToBuffer(node_in, buffer));
      TF_CHECK_OK(BufferToMessage(buffer, &node_out));
      TF_DeleteBuffer(buffer);
    
      protobuf::util::MessageDifferencer differencer;
      EXPECT_TRUE(differencer.Compare(node_in, node_out));
    }
    
    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)
Back to top