- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,789 for yield (0.08 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc
auto it = block.rbegin(); YieldOp yield = dyn_cast<YieldOp>(*it++); if (it == block.rend()) return std::nullopt; // Operation which is expected to consume all the call results. Operation* call_consumer = yield; // Allow a single ToBoolOp between the call and the yield (valid only // when the yield has a single operand) if (allow_to_bool && yield.getNumOperands() == 1 && isa<ToBoolOp>(*it)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops_invalid.mlir
func.return } // ----- // Check that a tf_executor.yield parent is a tf_executor.island. func.func @parent_is_island() { "tf.some_op"() ({ tf_executor.yield // expected-error@-1 {{'tf_executor.yield' op expects parent op 'tf_executor.island'}} }) : () -> () func.return } // ----- // Check that an island yield matches the island results.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 19 01:12:10 UTC 2023 - 28.2K 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) -
docs/de/docs/advanced/events.md
### Lifespan-Funktion Das Erste, was auffällt, ist, dass wir eine asynchrone Funktion mit `yield` definieren. Das ist sehr ähnlich zu Abhängigkeiten mit `yield`. ```Python hl_lines="14-19" {!../../../docs_src/events/tutorial003.py!} ``` Der erste Teil der Funktion, vor dem `yield`, wird ausgeführt **bevor** die Anwendung startet. Und der Teil nach `yield` wird ausgeführt, **nachdem** die Anwendung beendet ist. ### Asynchroner Kontextmanager
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:30:59 UTC 2024 - 9.1K 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) -
docs/pt/docs/advanced/events.md
A primeira coisa a notar, é que estamos definindo uma função assíncrona com `yield`. Isso é muito semelhante à Dependências com `yield`. ```Python hl_lines="14-19" {!../../../docs_src/events/tutorial003.py!} ``` A primeira parte da função, antes do `yield`, será executada **antes** da aplicação inicializar. E a parte posterior do `yield` irá executar **após** a aplicação ser encerrada. ### Gerenciador de Contexto Assíncrono
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 8.6K bytes - Viewed (0) -
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) -
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) -
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) -
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)