- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 3,381 for Yield (1.09 sec)
-
docs/en/docs/advanced/events.md
```Python hl_lines="14-19" {!../../../docs_src/events/tutorial003.py!} ``` The first part of the function, before the `yield`, will be executed **before** the application starts. And the part after the `yield` will be executed **after** the application has finished. ### Async Context Manager
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/executor_island_materialize_const.mlir
tf_executor.yield %0 : tensor<f32> } // Uses two islands for no other reason than preventing canonicalization from // eliminating the graph entirely. %2:2 = tf_executor.island(%1#1) { %4 = "tf.opB"(%1#0) : (tensor<f32>) -> tensor<f32> tf_executor.yield %4 : tensor<f32> } tf_executor.fetch %2#0 : tensor<f32> }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Nov 04 14:07:37 UTC 2022 - 854 bytes - Viewed (0) -
src/cmd/link/testdata/linkname/ok.go
// Use of this source code is governed by a BSD-style // 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) -
src/internal/types/testdata/spec/range.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 04:31:42 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/launch_outlining.mlir
%4 = "tf.B"(%2) : (tensor<?xi32>) -> tensor<?xi32> tf_device.return %4 : tensor<?xi32> }) {device = "/device:test_device:0"} : () -> tensor<?xi32> // CHECK: tf_executor.yield %[[LAUNCH_OUTPUT]] tf_executor.yield %3 : tensor<?xi32> } tf_executor.fetch %1#0 : tensor<?xi32> } func.return %0 : tensor<?xi32> } // CHECK: func private @[[LAUNCH]]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:59:10 UTC 2023 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tpu-variable-runtime-reformatting.mlir
%1 = "tf.WhileRegion"(%0) ({ // Condition region // CHECK: ^bb // CHECK: "tf.Yield" ^bb0(%carg0: tensor<i32>): %c0 = "tf.Const"() {value = dense<0> : tensor<i32>} : () -> tensor<i32> %c1 = "tf.GreaterEqual"(%carg0, %0) {T = i32, device = ""} : (tensor<i32>, tensor<i32>) -> tensor<i1> "tf.Yield"(%c1) : (tensor<i1>) -> () }, { // Body region // CHECK: ^bb0
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:59:10 UTC 2023 - 25.4K bytes - Viewed (0) -
src/cmd/link/testdata/linkname/coro.go
// 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) -
tensorflow/compiler/mlir/tensorflow/tests/resource-alias-analysis-test.mlir
"tf.Yield"(%u0, %id0, %id0) : (!tf_res, !tf_res, !tf_res) -> () }, { // expected-remark@below {{Result #0, ID 3 : 0, 1, 3, 4, 5}} %id0 = "tf.Identity"(%vh0) : (!tf_res) -> !tf_res "tf.Yield"(%id0, %id0, %arg0) : (!tf_res, !tf_res, !tf_res) -> () }, { "tf.Yield"(%vh0, %arg1, %arg1) : (!tf_res, !tf_res, !tf_res) -> ()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jul 21 17:19:47 UTC 2023 - 22.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/end-to-end-tpu-reshard-variables.mlir
%control = tf_executor.island { "tf.StatefulPartitionedCall"(%arg0) <{config = "", config_proto = "", executor_type = "", f = @partitioned}> : (tensor<*x!tf_type.resource>) -> () tf_executor.yield } tf_executor.fetch %control : !tf_executor.control } return }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 13 21:23:47 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc
OpBuilder builder(&island.GetBody(), island.GetBody().begin()); tf_executor::YieldOp yield = island.GetYield(); if (yield.getNumOperands() == 0) { builder.create<TF::NoOp>(island.getLoc(), TypeRange{}, ValueRange{}); } else if (yield.getNumOperands() == 1) { Value operand = yield.getOperand(0); auto identity = builder.create<TF::IdentityOp>(island.getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 11 20:52:36 UTC 2023 - 16.7K bytes - Viewed (0)