Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for _SINK (0.08 sec)

  1. test/typeparam/chans.go

    					return
    				}
    				if f(v) {
    					r <- v
    				}
    			}
    		}
    	}(ctx, c, f, r)
    	return r
    }
    
    // _Sink returns a channel that discards all values sent to it.
    // This will leave a goroutine running until the context is canceled
    // or the returned channel is closed.
    func _Sink[Elem any](ctx context.Context) chan<- Elem {
    	r := make(chan Elem)
    	go func(ctx context.Context, r <-chan Elem) {
    		for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/build_xla_ops_pass.cc

      if (ctrl_edges.empty()) {
        return;
      }
    
      if (ctrl_edges.size() == 1 && ctrl_edges.front()->dst()->IsSink()) {
        // Avoid creating a Merge node if we can just add an edge to _SINK
        // instead.
        s.graph()->AddControlEdge(new_node, s.graph()->sink_node());
        return;
      }
    
      // We can't merge control edges directly so we instead first "convert" them to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      for (Operation& inst : graph_op.GetBody()) {
        TF_RETURN_IF_ERROR(exporter.AddEdge(&inst));
      }
      // Fixes the edges between the inserted nodes and special "_SOURCE" and
      // "_SINK".
      FixupSourceAndSinkEdges(graph.get());
    
      FixupInputNamesFromEdges(graph.get());
    
      TF_RETURN_IF_ERROR(
          exporter.GetControlRetNodes(graph_op.GetFetch(), control_ret_nodes));
    
      return graph;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      for (Operation& inst : graph_op.GetBody()) {
        TF_RETURN_IF_ERROR(exporter.AddEdge(&inst));
      }
      // Fixes the edges between the inserted nodes and special "_SOURCE" and
      // "_SINK".
      FixupSourceAndSinkEdges(graph.get());
    
      FixupInputNamesFromEdges(graph.get());
    
      TF_RETURN_IF_ERROR(
          exporter.GetControlRetNodes(graph_op.GetFetch(), control_ret_nodes));
    
      return graph;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      // particularly seems to be the case for the control edges between _SOURCE
      // and _SINK that the Graph constructor inserts. Copy the input edges and
      // sort the edges, but only the control edges, not data edges!
      // TODO(jmolloy): We should probably just ignore _SOURCE and _SINK nodes.
      // They'll break roundtripping anyway unless we strip them when converting
      // back to graphdef.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top