Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,311 for yield (1.74 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/tests/tf-functional-to-executor.mlir

    // CHECK: tf_executor.graph {
    // CHECK:   %[[CONTROL:.*]] = tf_executor.island {
    // CHECK:     tf_executor.yield
    // CHECK:   }
    // CHECK:   tf_executor.fetch %[[CONTROL]] : !tf_executor.control
    // CHECK: }
    // CHECK: return
    
    func.func @graph_already() {
      tf_executor.graph {
        %control = tf_executor.island {
          tf_executor.yield
        }
        tf_executor.fetch %control : !tf_executor.control
      }
      func.return
    }
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  4. docs_src/dependencies/tutorial008_an_py39.py

    from fastapi import Depends
    
    
    async def dependency_a():
        dep_a = generate_dep_a()
        try:
            yield dep_a
        finally:
            dep_a.close()
    
    
    async def dependency_b(dep_a: Annotated[DepA, Depends(dependency_a)]):
        dep_b = generate_dep_b()
        try:
            yield dep_b
        finally:
            dep_b.close(dep_a)
    
    
    async def dependency_c(dep_b: Annotated[DepB, Depends(dependency_b)]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 521 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/rewrite_tpu_embedding_ops.mlir

          "tf.Yield"(%0) : (tensor<512x256xf32>) -> ()
        }, {
          "tf.Yield"(%arg2) : (tensor<512x256xf32>) -> ()
        }) { is_stateless = true}: (tensor<i1>) -> tensor<512x256xf32>
        "tf.Yield"(%1) : (tensor<512x256xf32>) -> ()
      }, {
        "tf.Yield"(%arg2) : (tensor<512x256xf32>) -> ()
      }) { is_stateless = true}: (tensor<i1>) -> tensor<512x256xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/launch_to_device_attribute.mlir

          tf_executor.yield %launch#0, %launch#1: tensor<f32>, tensor<i32>
        }
        tf_executor.fetch
      }
      func.return
    }
    
    // CHECK-NOT: tf_executor.island
    // CHECK:      [[A:%.+]]:2, {{.*}} = tf_executor.island wraps "tf.opA"
    // CHECK-SAME: device = "CPU:0"
    // CHECK-NOT:  tf_device.launch
    // CHECK-NOT:      tf_executor.yield [[A]]#1, [[A]]#0
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 17:10:32 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/tf-executor-to-functional.mlir

        %output0, %control0 = tf_executor.island {
          %a = "tf.opA"(%arg0) : (tensor<i32>) -> tensor<i32>
          tf_executor.yield %a : tensor<i32>
        }
        %output1, %control1 = tf_executor.island {
          %b = "tf.opB"(%output0) : (tensor<i32>) -> tensor<i32>
          tf_executor.yield %b : tensor<i32>
        }
        tf_executor.fetch %output1 : tensor<i32>
      }
      func.return %graph_result : tensor<i32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/launch_to_device_attribute_legacy.mlir

          tf_executor.yield %a, %launch#0, %launch#1, %c : tensor<i1>, tensor<f32>, tensor<i32>, tensor<i1>
        }
        tf_executor.fetch
      }
      func.return
    }
    
    // CHECK:      %[[A:.*]] = "tf.opA"
    // CHECK:      %[[B:.*]]:2 = "tf.opB"(%[[A]])
    // CHECK-SAME: device = "CPU:0"
    // CHECK:      %[[C:.*]] = "tf.opC"
    // CHECK-NOT:  "tf_device.launch"
    // CHECK:      tf_executor.yield %[[A]], %[[B]]#1, %[[B]]#0, %[[C]]
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 21 20:14:51 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/executor_tpuv1_outline_island/executor_tpuv1_outline_tpu_island.mlir

          %3 = "tf.opA"(%arg0) : (tensor<i1>) -> tensor<i1>
          tf_executor.yield %3 : tensor<i1>
        }
        %2:2 = tf_executor.island(%1#1) {
          %4 = "tf.opB"() : () -> tensor<f32>
          tf_executor.yield %4 : tensor<f32>
        }
        tf_executor.fetch %2#0 : tensor<f32>
      }
      func.return %0 : tensor<f32>
    }
    
    // CHECK-LABEL: @func2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 04 03:54:58 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  10. 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)
Back to top