Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for input_node (0.2 sec)

  1. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

      ASSERT_NE(if_node, nullptr);
      const Node *input_node;
      TF_CHECK_OK(if_node->input_node(1, &input_node));
      EXPECT_EQ(input_node->name(), "arg1");
      TF_CHECK_OK(if_node->input_node(2, &input_node));
      EXPECT_EQ(input_node->name(), "arg0");
      const Node *ret0_node = node_name_index.at("ret0");
      ASSERT_NE(ret0_node, nullptr);
      TF_CHECK_OK(ret0_node->input_node(0, &input_node));
      EXPECT_EQ(input_node->name(), "if");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/shape_inference.cc

                  shape_refiner->GetContext(n);
              for (int i = 0; i < n->num_inputs(); i++) {
                const Node* input_node;
                if (n->input_node(i, &input_node).ok()) {
                  auto shapes_and_types = context->input_handle_shapes_and_types(i);
                  if (shapes_and_types) {
                    context->set_output_handle_shapes_and_types(0,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_compile_util_test.cc

      EXPECT_EQ(identity_node->attrs().FindByString("T")->type(), DT_FLOAT);
    
      EXPECT_EQ(identity_node->num_inputs(), 1);
      const Node* identity_input_node = nullptr;
      TF_EXPECT_OK(identity_node->input_node(0, &identity_input_node));
      EXPECT_EQ(identity_input_node->name(), "_arg0");
    
      const Node* arg_node = node_name_index.at("_arg0");
      EXPECT_EQ(arg_node->op_def().name(), "_Arg");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 21:48:05 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

          send_recv_nodes.push_back(n);
        }
      }
      EXPECT_EQ(num_send_from_host, 1);
      EXPECT_EQ(num_recv_at_host, 1);
      for (Node *n : send_recv_nodes) {
        Node *input_node;
        TF_CHECK_OK(n->input_node(n->num_inputs() - 1, &input_node));
        EXPECT_EQ(input_node, key_placeholder);
    
        bool has_control_edge_to_sequencer = false;
        for (const Edge *e : n->out_edges()) {
          if (e->IsControlEdge() && e->dst() == sequencer) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/compilability_check_util_test.cc

      NodeBuilder while_builder(kFunctionalWhileNodeName, "While",
                                builder.opts().op_registry());
      while_builder.Input({input_node, input_node})
          .Attr("cond", compilable)
          .Attr("body", uncompilable);
      builder.opts().FinalizeBuilder(&while_builder);
    
      GraphDef graph_def;
      TF_EXPECT_OK(builder.ToGraphDef(&graph_def));
      std::unique_ptr<Graph> graph(new Graph(flib_def_.get()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

      // Create a list of all control dependencies to be copied when possibly
      // replacing nodes related to slice_size.
      Node* old_size;
      std::vector<const Edge*> old_size_ctrl_deps;
      TF_RETURN_IF_ERROR(slice->input_node(2, &old_size));
      absl::c_copy_if(old_size->in_edges(), std::back_inserter(old_size_ctrl_deps),
                      [](const Edge* e) { return e->IsControlEdge(); });
    
      Output slice_size;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      for (const auto* input_edge : in_edges) {
        const Node& input_node = *input_edge->src();
        if (input_node.IsSource()) {
          if (in_edges.size() != 1) {
            return errors::FailedPrecondition(
                "The node has other inputs besides the _Source node");
          }
          // We don't import the _SOURCE node.
          continue;
        }
        if (input_node.IsArg() && input_edge->IsControlEdge()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

      }
      if (!ret_node) {
        return errors::Internal("No _Retval node for loop cond function ",
                                loop_cond_func->name());
      }
      Node* loop_cond;
      TF_RETURN_IF_ERROR(ret_node->input_node(0, &loop_cond));
    
      // Build the XlaSendToHost node.
      NodeDefBuilder send_loop_cond_builder(
          absl::StrCat("send_oc_while_cond_", while_node->name()), "XlaSendToHost");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/mark_for_compilation_pass.cc

        return false;
      }
      const Node* switch_node = (*it)->src();
    
      // Check if the Switch is driven by LoopCond.
      const Node* maybe_loop_cond;
      TF_RETURN_IF_ERROR(switch_node->input_node(1, &maybe_loop_cond));
      if (!maybe_loop_cond->IsLoopCond()) {
        return false;
      }
    
      // Check if the Identity is driving any const nodes through a control edge.
      bool driving_any_consts =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_function.cc

                                        " into function '", fn_name, "'");
    
        input_tensors->emplace_back(node, idx);
    
        const auto& iter = input_nodes->find(node);
        if (iter == input_nodes->end()) {
          input_nodes->insert({node, {idx}});
        } else {
          auto& indices = iter->second;
          if (std::find(indices.begin(), indices.end(), idx) != indices.end()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top