Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for RemoveEdge (0.36 sec)

  1. tensorflow/compiler/jit/encapsulate_util.cc

          // Case 1b: XLA computation to outside compilation in it control edge.
          ReplaceAttr(e->dst(), kXlaConnectedFromXlaComputationAttrName, true);
        }
      }
    
      for (auto e : edges_to_remove) {
        g->RemoveEdge(e);
      }
      return absl::OkStatus();
    }
    
    // Step 2 for `PreprocessEdgesBetweenOutsideCompilations`. See comments of
    // `PreprocessEdgesBetweenOutsideCompilations` for details.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        putEdge(N1, N2);
        assertThat(graph.successors(N1)).containsExactly(N2);
        assertThat(graph.predecessors(N2)).containsExactly(N1);
        assertThat(graphAsMutableGraph.removeEdge(N1, N2)).isTrue();
        assertThat(graphAsMutableGraph.removeEdge(N1, N2)).isFalse();
        assertThat(graph.successors(N1)).isEmpty();
        assertThat(graph.predecessors(N2)).isEmpty();
      }
    
      @Test
      public void removeEdge_oneOfMany() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/shape_inference.cc

                if (e->IsControlEdge()) {
                  graph->AddControlEdge(const_node, e->dst());
                  graph->RemoveEdge(e);
                } else {
                  Node* dst = e->dst();
                  int dst_input = e->dst_input();
                  graph->RemoveEdge(e);
                  graph->AddEdge(const_node, 0, dst, dst_input);
                }
              }
            }
          }
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/build_xla_ops_pass.cc

        // 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) {
      // The choice of data type here is important.
      //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/sccp.go

    // and thus can be removed in further deadcode phase
    func rewireSuccessor(block *Block, constVal *Value) bool {
    	switch block.Kind {
    	case BlockIf:
    		block.removeEdge(int(constVal.AuxInt))
    		block.Kind = BlockPlain
    		block.Likely = BranchUnknown
    		block.ResetControls()
    		return true
    	case BlockJumpTable:
    		// Remove everything but the known taken branch.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/partially_decluster_pass.cc

      }
    
      for (const Edge* out_edge_to_clone : out_edges_to_clone) {
        graph->AddEdge(cloned_node, out_edge_to_clone->src_output(),
                       out_edge_to_clone->dst(), out_edge_to_clone->dst_input());
        graph->RemoveEdge(out_edge_to_clone);
      }
    
      if (n->out_edges().empty()) {
        graph->RemoveNode(n);
      }
    
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

        DCHECK(e->src_output() == 0 || e->src_output() == Graph::kControlSlot);
    
        int src_output = e->src_output();
        int dst_input = e->dst_input();
        Node* dst = e->dst();
        g->RemoveEdge(e);
        g->AddEdge(static_shaped_slice, src_output, dst, dst_input);
      }
    
      for (const Edge* e : slice->in_edges()) {
        if (e->IsControlEdge()) {
          g->AddControlEdge(e->src(), static_shaped_slice);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. plugin/pkg/auth/authorizer/node/graph.go

    	for _, v := range neighborsToRemove {
    		g.removeVertex_locked(v)
    	}
    
    	// remove edges and decrement destination indexes for neighbors that dropped outbound edges
    	for _, edge := range edgesToRemove {
    		g.graph.RemoveEdge(edge)
    		g.removeEdgeFromDestinationIndex_locked(edge)
    	}
    }
    
    // A fastpath for recomputeDestinationIndex_locked for "removing edge" case.
    func (g *Graph) removeEdgeFromDestinationIndex_locked(e graph.Edge) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top