Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 82 for hiter (1.69 sec)

  1. src/runtime/testdata/testprog/coro.go

    		CoroLockOSThread(callerStopLocked, iterNested)
    	})
    }
    
    func CoroLockOSThread(driver func(iter.Seq[int]) error, seq iter.Seq[int]) {
    	if err := driver(seq); err != nil {
    		println("error:", err.Error())
    		return
    	}
    	println("OK")
    }
    
    func callerExhaust(i iter.Seq[int]) error {
    	next, _ := iter.Pull(i)
    	for {
    		v, ok := next()
    		if !ok {
    			break
    		}
    		if v != 5 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/coro.go

    }
    
    func callFromC(f func()) {
    	C.call_go(C.uintptr_t(cgo.NewHandle(f)))
    }
    
    func CoroCgo(driver func(iter.Seq[int]) error, seq iter.Seq[int]) {
    	if err := driver(seq); err != nil {
    		println("error:", err.Error())
    		return
    	}
    	println("OK")
    }
    
    func callerExhaust(i iter.Seq[int]) error {
    	next, _ := iter.Pull(i)
    	for {
    		v, ok := next()
    		if !ok {
    			break
    		}
    		if v != 5 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/reflect/iter_test.go

    package reflect_test
    
    import (
    	"iter"
    	"maps"
    	. "reflect"
    	"testing"
    )
    
    func TestValueSeq(t *testing.T) {
    	m := map[string]int{
    		"1": 1,
    		"2": 2,
    		"3": 3,
    		"4": 4,
    	}
    	c := make(chan int, 3)
    	for i := range 3 {
    		c <- i
    	}
    	close(c)
    	tests := []struct {
    		name  string
    		val   Value
    		check func(*testing.T, iter.Seq[Value])
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 14:27:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. tensorflow/cc/framework/grad_op_registry.cc

      CHECK(registry_.insert({op, func}).second) << "Existing gradient for " << op;
      return true;
    }
    
    Status GradOpRegistry::Lookup(const string& op, GradFunc* func) const {
      auto iter = registry_.find(op);
      if (iter == registry_.end()) {
        const string error_msg =
            "No gradient defined for op: " + op +
            ". Please see "
            "https://www.tensorflow.org/code/"
            "tensorflow/cc/gradients/README.md"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  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/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc

            // corresponding indices in the pass_ids vector.
            auto iter = pass_names.begin();
            while ((iter = std::find(iter, pass_names.end(), pass->name())) !=
                   pass_names.end()) {
              pass_ids[std::distance(pass_names.begin(), iter)] = pass.get();
              iter++;
            }
          }
        }
      }
      return pass_ids;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/statistics.cc

      module_op.walk([&py_function_library, &calibration_options, &status,
                      &statistics_map](mlir::TF::CustomAggregatorOp aggregator_op) {
        mlir::StringRef id = aggregator_op.getId();
        auto iter = statistics_map.find(id);
        if (iter == statistics_map.end()) {
          status = absl::InternalError(
              absl::StrFormat("Calibrated data does not exist. Cannot find "
                              "statistics. value for id: %s",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top