Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for node_name_index (0.28 sec)

  1. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

      ASSERT_EQ(f1_rewritten->signature().output_arg_size(), 1);
      EXPECT_EQ(f1_rewritten->signature().output_arg(0).type(), DT_BOOL);
    
      // Check node "if" input and output edges.
      auto node_name_index = g->BuildNodeNameIndex();
      const Node *if_node = node_name_index.at("if");
      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");
    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/encapsulate_util.cc

        TF_RETURN_IF_ERROR(GetNodeAttr(
            n->attrs(), kOutsideCompilationSrcOutputAttrName, &node_src_output));
        auto iter = node_name_index.find(node_name);
        if (iter == node_name_index.end()) {
          return errors::Internal(
              "Cannot find original node for oc -> host placeholder node ",
              node_name);
        }
    
        // Change all usage node to use the original node instead.
        Node* original_node = iter->second;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_compile_util_test.cc

      args[0].initialized = true;
    
      TF_ASSERT_OK_AND_ASSIGN(
          auto graph,
          CreateSingleOpGraph(*node_def(), args, single_op_arg.output_dtypes));
    
      const auto& node_name_index = graph->BuildNodeNameIndex();
    
      const Node* identity_node = node_name_index.at("identity_op");
      EXPECT_EQ(identity_node->op_def().name(), "Identity");
      EXPECT_EQ(identity_node->attrs().FindByString("T")->type(), DT_FLOAT);
    
    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

                                          AttrSlice(), &fld, &xla_fbody));
      auto node_name_index = xla_fbody->graph->BuildNodeNameIndex();
    
      // Check XlaHostCompute nodes.
      Node *host_compute_0 = node_name_index["outside_compilation_0_host_compute"];
      EXPECT_NE(host_compute_0, nullptr);
      Node *host_compute_1 = node_name_index["outside_compilation_1_host_compute"];
      EXPECT_NE(host_compute_1, nullptr);
    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/extract_outside_compilation_pass.cc

        bool* modified) {
      if (VLOG_IS_ON(4)) {
        DumpGraphToFile("extract_outside_compilation_before", *g, fld);
      }
    
      *modified = false;
      auto node_name_index = g->BuildNodeNameIndex();
      for (auto& iter : clusters) {
        string xla_cluster_name = iter.first;
        Node* n = iter.second.node;
        auto const& func_name_attrs = iter.second.func_name_attrs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
Back to top