Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for AddEdge (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. tensorflow/compiler/jit/partially_decluster_pass.cc

      cloned_node->set_assigned_device_name(n->assigned_device_name());
    
      for (const Edge* in_edge : n->in_edges()) {
        graph->AddEdge(in_edge->src(), in_edge->src_output(), cloned_node,
                       in_edge->dst_input());
      }
    
      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());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/Graphs.java

          for (E edge : network.outEdges(node)) {
            N successorNode = network.incidentNodes(edge).adjacentNode(node);
            if (subgraph.nodes().contains(successorNode)) {
              subgraph.addEdge(node, successorNode, edge);
            }
          }
        }
        return subgraph;
      }
    
      /** Creates a mutable copy of {@code graph} with the same nodes and edges. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      auto var =
          ops::VarHandleOp(root.WithOpName("var"), DT_INT32, TensorShape({}));
      auto int32_on_device =
          ops::ReadVariableOp(root.WithOpName("int32_on_device"), var, DT_INT32);
    
      root.graph()->AddEdge(int32_on_device.node(), 0, call, 0);
    
      std::unique_ptr<Graph> graph;
      TF_ASSERT_OK(BuildXlaOps(root, fdef_lib, &graph));
    
      Node* stateful_partitioned_call_op = nullptr;
      for (Node* n : graph->op_nodes()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/Graphs.java

          for (E edge : network.outEdges(node)) {
            N successorNode = network.incidentNodes(edge).adjacentNode(node);
            if (subgraph.nodes().contains(successorNode)) {
              subgraph.addEdge(node, successorNode, edge);
            }
          }
        }
        return subgraph;
      }
    
      /** Creates a mutable copy of {@code graph} with the same nodes and edges. */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top