Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,140 for yield (0.11 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tensorflow/tests/convert-tf-control-flow-to-scf.mlir

        %add = "tf.AddV2"(%call, %call) : (tensor<4xf32>, tensor<4xf32>) -> tensor<4xf32>
        "tf.Yield"(%call, %add) : (tensor<4xf32>, tensor<4xf32>) -> ()
      },  {
        %call_0 = func.call @test_if_else1(%arg1) : (tensor<4xf32>) -> tensor<4xf32>
        "tf.Yield"(%call_0, %call_0) : (tensor<4xf32>, tensor<4xf32>) -> ()
      }) {is_stateless = false} : (tensor<i1>) -> (tensor<*xf32>, tensor<4xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/tests/convert_launch_func_to_tf_call.mlir

          // CHECK-SAME: device = "/device:test_device:0"
          %3 = "tf_device.launch_func"(%2) {device = "/device:test_device:0", func = @_func} : (tensor<?xf32>) -> tensor<?xf32>
    
          // CHECK: tf_executor.yield %[[CALL_OUTPUT]]
          tf_executor.yield %3 : tensor<?xf32>
        }
        tf_executor.fetch %1#0 : tensor<?xf32>
      }
      func.return %0 : tensor<?xf32>
    }
    
    func.func @_func(%arg0: tensor<?xf32>) -> tensor<?xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/tensorflow/tests/prepare_tpu_computation_for_tf_export.mlir

          // CHECK: tf.Yield
          "tf.Yield"(%recv) : (tensor<f32>) -> ()
        }, {
          // CHECK-NOT: _xla_token_input_nodes
          %add = "tf.Add"(%arg1, %arg1) : (tensor<f32>, tensor<f32>) -> tensor<f32>
    
          // CHECK: tf.Yield
          "tf.Yield"(%add) : (tensor<f32>) -> ()
        }) { is_stateless = true}: (tensor<i1>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 18:46:36 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v1/testdata/invalid_executor.mlir

      func.func @main() {
        tf_executor.graph {
          %control = tf_executor.island {
            tf_executor.yield
          }
          tf_executor.fetch %control : !tf_executor.control
        }
        tf_executor.graph {
          %control = tf_executor.island {
            tf_executor.yield
          }
          tf_executor.fetch %control : !tf_executor.control
        }
        return
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 03 14:48:16 UTC 2023
    - 457 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/testdata/invalid_executor.mlir

      func.func @main() {
        tf_executor.graph {
          %control = tf_executor.island {
            tf_executor.yield
          }
          tf_executor.fetch %control : !tf_executor.control
        }
        tf_executor.graph {
          %control = tf_executor.island {
            tf_executor.yield
          }
          tf_executor.fetch %control : !tf_executor.control
        }
        return
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 29 15:25:49 UTC 2023
    - 457 bytes
    - Viewed (0)
Back to top