Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for AddEdge (0.11 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

        addEdge(N1, N1, E11);
        addEdge(N1, N2, E12);
        assertThat(network.adjacentEdges(E11)).containsExactly(E12);
      }
    
      @Test
      public void edgesConnecting_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.edgesConnecting(N1, N1)).containsExactly(E11);
        addEdge(N1, N2, E12);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java

                    if (vertex != null) {
                        addEdge(projectVertex, vertex, project, projectMap, force, safe);
                    }
                } else {
                    for (Vertex vertex : vertices.values()) {
                        addEdge(projectVertex, vertex, project, projectMap, force, safe);
                    }
                }
            }
        }
    
        private void addEdge(
                Vertex fromVertex,
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Sep 22 06:02:04 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

      TF_CHECK_OK(scope.DoShapeInference(launch));
      scope.graph()->AddEdge(a.node(), 0, launch, 0);
      scope.graph()->AddEdge(b.node(), 0, launch, 1);
      scope.graph()->AddEdge(c.node(), 0, launch, 2);
      scope.graph()->AddEdge(d.node(), 0, launch, 3);
      scope.graph()->AddEdge(u.node(), 0, launch, 4);
      scope.graph()->AddEdge(v.node(), 0, launch, 5);
      scope.graph()->AddEdge(w.node(), 0, launch, 6);
    
      auto out0 =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  4. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

            {
                ArtifactMetadata md = node.getMd();
                MetadataGraphEdge e =
                        new MetadataGraphEdge(md.version, md.resolved, md.artifactScope, md.artifactUri, depth, pomOrder);
                addEdge(parentVertex, vertex, e);
            } else {
                entry = vertex;
            }
    
            MetadataTreeNode[] kids = node.getChildren();
            if (kids == null || kids.length < 1) {
                return;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Oct 05 18:41:13 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/shape_inference_test.cc

        auto sink = ops::Identity(scope.WithOpName("sink"), exit);
    
        // Remove the dummy node and add the loop backedge.
        scope.graph()->RemoveNode(dummy.node());
        scope.graph()->AddEdge(next_iteration.node(), 0, merge.output.node(), 1);
    
        TF_EXPECT_OK(scope.ToGraph(&graph));
      }
    
      GraphShapeInfo shape_info;
      TF_ASSERT_OK(InferShapes(&graph, /*arg_shapes=*/{}, /*fnlib_def=*/nullptr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

          << "Use of BlockArgument encounted before def!";
      // For argument, there is only one result output, so the index is always 0.
      graph_->AddEdge(input_node_it->second, 0, dst_node, dst_index);
      return absl::OkStatus();
    }
    
    Status Exporter::AddEdge(Operation* inst) {
      // For tf_executor.fetch, add only its data edges. Control edges are captured
      // later.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

          << "Use of BlockArgument encounted before def!";
      // For argument, there is only one result output, so the index is always 0.
      graph_->AddEdge(input_node_it->second, 0, dst_node, dst_index);
      return absl::OkStatus();
    }
    
    Status Exporter::AddEdge(Operation* inst) {
      // For tf_executor.fetch, add only its data edges. Control edges are captured
      // later.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/encapsulate_util.cc

          TF_ASSIGN_OR_RETURN(placeholder_node, g->AddNode(placeholder_def));
          placeholders[placeholder_index] = placeholder_node;
        } else {
          placeholder_node = iter->second;
        }
        g->AddEdge(placeholder_node, 0, dst, dst_input);
    
        // Replace `e->dst()` because its input node changed.
        NodeDef new_def = dst->def();
        *new_def.mutable_input(dst_input) = placeholder_node->name();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/build_xla_ops_pass.cc

        // TODO(sanjoy): This does not update NodeDef inputs.  To be able to update
        // NodeDef inputs we first need to fix encapsulate_subgraphs_pass to fix up
        // the NodeDef inputs to the function call nodes.
        g->AddEdge(new_node, edge->src_output(), edge->dst(), edge->dst_input());
        g->RemoveEdge(edge);
      }
    }
    
    // Returns a data value that is dead iff `control` is dead.
    Output ControlToData(const Scope& scope, Node* control) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc

          graph->AddEdge(data_inputs[i].first, data_inputs[i].second, xla_launch,
                         i);
        }
        for (Node* n : control_inputs) {
          graph->AddControlEdge(n, xla_launch);
        }
        for (int i = 0, end = data_outputs.size(); i < end; ++i) {
          for (const auto& successor : data_outputs[i]) {
            graph->AddEdge(xla_launch, i, successor.first, successor.second);
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top