Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 3,447 for yield (0.17 sec)

  1. src/reflect/iter.go

    			break
    		}
    		return func(yield func(Value) bool) {
    			v = v.Elem()
    			for i := range v.Len() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case Array, Slice:
    		return func(yield func(Value) bool) {
    			for i := range v.Len() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case String:
    		return func(yield func(Value) bool) {
    			for i := range v.String() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/check_control_dependencies.mlir

          tf_executor.yield
        }
        %island2 = tf_executor.island(%island1) {
          "tf.NoOp"() : () -> ()
          tf_executor.yield
        }
        %island3 = tf_executor.island(%island2) {
          "tf.NoOp"() : () -> ()
          tf_executor.yield
        }
        %island4:2 = tf_executor.island(%island3) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 31 16:14:07 UTC 2022
    - 8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/pin-ops-with-side-effects.mlir

      "tfl.if"(%arg0) (
      {
        // then
        ^bb0:
         "tfl.yield"() : () -> ()
      },
      {
        // else
       ^bb0:
        "tfl.yield"() : () -> ()
      }) : (tensor<1xi1>) -> ()
      func.return
    }
    // CHECK-NEXT: %[[CONTROL:.*]] = tfl.control_node controls "tfl.if"
    // CHECK-NEXT: "tfl.yield"() : () -> ()
    // CHECK-NEXT: }, {
    // CHECK-NEXT: "tfl.yield"() : () -> ()
    // CHECK-NEXT: }) : (tensor<1xi1>) -> ()
    // CHECK-NEXT: return
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 17 10:45:19 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  4. src/runtime/race/testdata/rangefunc_test.go

    	"testing"
    )
    
    type Seq2[T1, T2 any] func(yield func(T1, T2) bool)
    
    // ofSliceIndex returns a Seq over the elements of s. It is equivalent
    // to range s, except that it splits s into two halves and iterates
    // in two separate goroutines.  This is racy if yield is racy, and yield
    // will be racy if it contains an early exit.
    func ofSliceIndex[T any, S ~[]T](s S) Seq2[int, T] {
    	return func(yield func(int, T) bool) {
    		c := make(chan bool, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/executor_canonicalize.mlir

      tf_executor.graph {
        %0 = tf_executor.island {
          tf_executor.yield
        }
        %1 = tf_executor.island(%0) {
          %3 = "tf.opA"() : () -> tensor<i1>
          tf_executor.yield
        }
        %2 = tf_executor.island(%0, %1) {
          %4 = "tf.opB"() : () -> tensor<i1>
          tf_executor.yield
        }
        tf_executor.fetch
      }
      func.return
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 04 14:07:37 UTC 2022
    - 13.6K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/coro.go

    	return nil
    }
    
    func iterSimple(yield func(int) bool) {
    	for range 3 {
    		if !yield(5) {
    			return
    		}
    	}
    }
    
    func iterNested(yield func(int) bool) {
    	next, stop := iter.Pull(iterSimple)
    	for {
    		v, ok := next()
    		if ok {
    			if !yield(v) {
    				stop()
    			}
    		} else {
    			return
    		}
    	}
    }
    
    func iterLock(yield func(int) bool) {
    	for range 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

            %2 = "tf.Abs"(%asin) : (tensor<*xf32>) -> tensor<*xf32>
            "tf.Yield"(%2) : (tensor<*xf32>) -> ()
          }, {
            %2 = "tf.Neg"(%arg1) : (tensor<*xf32>) -> tensor<*xf32>
            "tf.Yield"(%2) : (tensor<*xf32>) -> ()
          }) { is_stateless = true } :  (tensor<i1>) -> tensor<*xf32>
    
        "tf.Yield"(%1) : (tensor<*xf32>) -> ()
        }, {
        // Outer Else
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/remove_unused_while_results.mlir

        %1 = "tf.OpA"() {is_stateless = true} : () -> tensor<i1>
        "tf.Yield"(%1) : (tensor<i1>) -> ()
      }, {
      ^bb0(%arg2: tensor<*xf32>, %arg3: tensor<*xf32>):
        %1 = "tf.OpB"(%arg2) {is_stateless = true} : (tensor<*xf32>) -> tensor<*xf32>
        %2 = "tf.OpC"(%arg3) {is_stateless = true} : (tensor<*xf32>) -> tensor<*xf32>
        "tf.Yield"(%1, %2) : (tensor<*xf32>, tensor<*xf32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 21 20:25:31 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/breakup-islands.mlir

          tf_executor.yield %add1, %add2 : tensor<*xi32>, tensor<*xi32>
        }
        %island2:3 = tf_executor.island(%island1#2) {
          %sub = "tf.Sub"(%arg0, %arg1) : (tensor<*xi32>, tensor<i32>) -> tensor<*xi32>
          %mul = "tf.Mul"(%sub, %arg1) : (tensor<*xi32>, tensor<i32>) -> tensor<*xi32>
          tf_executor.yield %sub, %mul : tensor<*xi32>, tensor<*xi32>
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 28.5K bytes
    - Viewed (0)
  10. src/iter/pull_test.go

    import (
    	"fmt"
    	. "iter"
    	"runtime"
    	"testing"
    )
    
    func count(n int) Seq[int] {
    	return func(yield func(int) bool) {
    		for i := range n {
    			if !yield(i) {
    				break
    			}
    		}
    	}
    }
    
    func squares(n int) Seq2[int, int64] {
    	return func(yield func(int, int64) bool) {
    		for i := range n {
    			if !yield(i, int64(i)*int64(i)) {
    				break
    			}
    		}
    	}
    }
    
    func TestPull(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top