Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,064 for yield (0.04 sec)

  1. 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)
  2. 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)
  3. src/iter/iter.go

    // When called as seq(yield), seq calls yield(v) for each value v in the sequence,
    // stopping early if yield returns false.
    type Seq[V any] func(yield func(V) bool)
    
    // Seq2 is an iterator over sequences of pairs of values, most commonly key-value pairs.
    // When called as seq(yield), seq calls yield(k, v) for each pair (k, v) in the sequence,
    // stopping early if yield returns false.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/coro.go

    	})
    	return err
    }
    
    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 iterCallback(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.4K bytes
    - Viewed (0)
  5. src/maps/iter.go

    	return func(yield func(K, V) bool) {
    		for k, v := range m {
    			if !yield(k, v) {
    				return
    			}
    		}
    	}
    }
    
    // Keys returns an iterator over keys in m.
    // The iteration order is not specified and is not guaranteed
    // to be the same from one call to the next.
    func Keys[Map ~map[K]V, K comparable, V any](m Map) iter.Seq[K] {
    	return func(yield func(K) bool) {
    		for k := range m {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:41:45 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/slices/iter.go

    	return func(yield func(int, E) bool) {
    		for i, v := range s {
    			if !yield(i, v) {
    				return
    			}
    		}
    	}
    }
    
    // Backward returns an iterator over index-value pairs in the slice,
    // traversing it backward. The indexes range from len(s)-1 down to 0.
    func Backward[Slice ~[]E, E any](s Slice) iter.Seq2[int, E] {
    	return func(yield func(int, E) bool) {
    		for i := len(s) - 1; i >= 0; i-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/go/ast/walk_test.go

    	// in the middle of walking a node. Previously, incorrect handling of the
    	// boolean returned by the yield function resulted in the iterator calling
    	// yield for sibling nodes even after yield had returned false. With that
    	// bug, this test failed with a runtime panic.
    	src := "package p\ntype T struct {\n\tF int `json:\"f\"` // a field\n}\n"
    
    	fset := token.NewFileSet()
    	f, err := parser.ParseFile(fset, "", src, 0)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 916 bytes
    - Viewed (0)
  8. docs/em/docs/advanced/events.md

        🎲 👆 💪 ▶️ 🆕 ⏬, ⚖️ 👆 🤚 🎡 🏃 ⚫️. 🤷
    
    ### 🔆 🔢
    
    🥇 👜 👀, 👈 👥 ⚖ 🔁 🔢 ⏮️ `yield`. 👉 📶 🎏 🔗 ⏮️ `yield`.
    
    ```Python hl_lines="14-19"
    {!../../../docs_src/events/tutorial003.py!}
    ```
    
    🥇 🍕 🔢, ⏭ `yield`, 🔜 🛠️ **⏭** 🈸 ▶️.
    
    &amp; 🍕 ⏮️ `yield` 🔜 🛠️ **⏮️** 🈸 ✔️ 🏁.
    
    ### 🔁 🔑 👨‍💼
    
    🚥 👆 ✅, 🔢 🎀 ⏮️ `@asynccontextmanager`.
    
    👈 🗜 🔢 🔘 🕳 🤙 "**🔁 🔑 👨‍💼**".
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/PropertyAccessResolver.kt

                runPropertyAccessResolution(
                    propertyAccess,
                    onLocalValue = { yield(AssignmentResolution.ReassignLocalVal(it.localValue)) },
                    onProperty = { yield(AssignmentResolution.AssignProperty(PropertyReferenceResolution(it.receiver, it.property))) },
                    onExternalObject = { yield(AssignmentResolution.ReassignExternal(it)) }
                )
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/legalize-tf-while.mlir

    // CHECK:   call @while_cond_10_frozen0
    // CHECK:   yield
    // CHECK: ^bb0([[ARGS]]):
    // CHECK:   call @while_body
    // CHECK:   yield
    // CHECK: while_body
    // CHECK: while_cond
    
    // INLINE: tfl.while
    // INLINE: ^bb0([[ARGS:.*]]):
    // INLINE:   tf.Less
    // INLINE:   yield
    // INLINE: ^bb0([[ARGS]]):
    // INLINE:   %cst_2 = arith.constant
    // INLINE:   yield
    // INLINE-NOT: while_body
    // INLINE-NOT: while_cond
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top