Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 206 for iter2 (0.06 sec)

  1. src/internal/trace/testdata/testprog/stress-start-stop.go

    			select {}
    		}()
    
    		// Unblock helper goroutines and wait them to finish.
    		wp.Write(tmp[:])
    		wp.Write(tmp[:])
    		close(done)
    		wg.Wait()
    	}()
    
    	const iters = 5
    	for i := 0; i < iters; i++ {
    		var w io.Writer
    		if i == iters-1 {
    			w = os.Stdout
    		} else {
    			w = new(bytes.Buffer)
    		}
    		if err := trace.Start(w); err != nil {
    			log.Fatalf("failed to start tracing: %v", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/link/testdata/linkname/ok.go

    // license that can be found in the LICENSE file.
    
    // Use of public API is ok.
    
    package main
    
    import (
    	"iter"
    	"unique"
    )
    
    func seq(yield func(int) bool) {
    	yield(123)
    }
    
    var s = "hello"
    
    func main() {
    	h := unique.Make(s)
    	next, stop := iter.Pull(seq)
    	defer stop()
    	println(h.Value())
    	println(next())
    	println(next())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 433 bytes
    - Viewed (0)
  3. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/StatementReplacingVisitorSupport.java

       * replaced.
       */
      @SuppressWarnings("unchecked")
      protected <T extends Statement> void replaceAll(List<T> stats) {
        ListIterator<T> iter = stats.listIterator();
          while (iter.hasNext()) {
              iter.set((T) replace(iter.next()));
          }
      }
    
      /**
       * Replaces the currently visited statement with the specified statement.
       */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc

      const auto iter = std::lower_bound(items.begin(), items.end(), item);
      return std::make_tuple(iter, iter != items.end() && *iter == item);
    }
    
    void Insert(const int item, std::vector<int>& items) {
      const auto [iter, found] = Find(item, items);
      if (!found) items.insert(iter, item);
    }
    
    void Erase(const int item, std::vector<int>& items) {
      const auto [iter, found] = Find(item, items);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  5. src/cmd/link/testdata/linkname/coro.go

    // license that can be found in the LICENSE file.
    
    // Linkname coroswitch is not allowed, even if iter.Pull
    // is instantiated in the same package.
    
    package main
    
    import (
    	"iter"
    	"unsafe"
    )
    
    func seq(yield func(int) bool) {
    	yield(123)
    }
    
    func main() {
    	next, stop := iter.Pull(seq)
    	next()
    	stop()
    	coroswitch(nil)
    }
    
    //go:linkname coroswitch runtime.coroswitch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 506 bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

                         llvm::StringMap<FunctionMetadata> &metadatas) {
      MLIRContext *context = module_op.getContext();
      SymbolTable symbol_table(module_op);
      for (auto &iter : metadatas) {
        llvm::StringRef host = iter.first();
        FunctionMetadata &metadata = iter.second;
    
        // Do not create any new function for the operations on the localhost.
        if (IsOnLocalHost(host)) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. test/fixedbugs/issue55122b.go

    func main() {
    	for i := 0; i < 10000; i++ {
    		h(i)
    		sink = make([]byte, 1024) // generate some garbage
    	}
    }
    
    func h(iter int) {
    	var x [32]byte
    	for i := 0; i < 32; i++ {
    		x[i] = 99
    	}
    	g(&x)
    	if x == ([32]byte{}) {
    		return
    	}
    	for i := 0; i < 32; i++ {
    		println(x[i])
    	}
    	panic(iter)
    }
    
    //go:noinline
    func g(x interface{}) {
    	switch e := x.(type) {
    	case *[32]byte:
    		var c [32]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 18:21:06 UTC 2022
    - 644 bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/project/inheritance/t08/ProjectInheritanceTest.java

            assertNotNull(set, "No artifacts");
            assertTrue(set.size() > 0, "No Artifacts");
            Iterator iter = set.iterator();
            assertTrue(set.size() == 4, "Set size should be 4, is " + set.size());
    
            while (iter.hasNext()) {
                Artifact artifact = (Artifact) iter.next();
                System.out.println("Artifact: " + artifact.getDependencyConflictId() + " " + artifact.getVersion()
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. tensorflow/compiler/aot/benchmark.cc

      const int64_t start_us = NowMicros();
      int64_t iters = 0;
      while (true) {
        const int64_t iter_start_us = NowMicros();
        fn();
        const int64_t end_us = NowMicros();
        // Collect stats and decide whether to stop.
        stats->per_iter_us.push_back(end_us - iter_start_us);
        const int64_t total_us = end_us - start_us;
        ++iters;
        if ((max_us > 0 && total_us >= max_us) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 19:45:29 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/encapsulate_util.cc

      for (auto iter : shape_info) {
        std::vector<PartialTensorShape> output_shapes;
        std::transform(iter.second.begin(), iter.second.end(),
                       std::back_inserter(output_shapes),
                       [](const InferredShape& inferred_shape) {
                         return inferred_shape.shape;
                       });
        Node* n = node_name_index[iter.first];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top