Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,982 for Yield (0.06 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/mark_ops_for_outside_compilation.mlir

        %2 = "tf.IfRegion"(%arg0) ({
          %3 = "tf.StringToNumber"(%arg1) {out_type = f32} : (tensor<!tf_type.string>) -> tensor<f32>
          "tf.Yield"(%3) : (tensor<f32>) -> ()
         },  {
          %4 = "tf.Const"() {value = dense<1.0> : tensor<f32>} : () -> tensor<f32>
          "tf.Yield"(%4) : (tensor<f32>) -> ()
        }) {is_stateless = true} : (tensor<i1>) -> (tensor<f32>)
        %5 = "tf.Identity"(%2) : (tensor<f32>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 16:22:32 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/lite/tests/tfl_while_outline.mlir

        "tfl.yield"(%1) : (tensor<i1>) -> ()
      },  {
      ^bb0(%arg0: tensor<*xi32>, %arg1: tensor<*xf32>):
        // CHECK: call @WhileOp_body
        // CHECK-SAME: (tensor<*xi32>, tensor<*xf32>, tensor<i32>)
        %1:3 = func.call @WhileOp_body(%arg0, %arg1, %cst) : (tensor<*xi32>, tensor<*xf32>, tensor<i32>) -> (tensor<*xi32>, tensor<*xf32>, tensor<i32>)
        "tfl.yield"(%1#0, %1#1) : (tensor<*xi32>, tensor<*xf32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/internal/types/testdata/spec/range.go

    	}
    	m2 := (*T).PM
    	for range m2 /* ERROR "cannot range over m2 (variable of type func(*T)): func must be func(yield func(...) bool): argument is not func" */ {
    	}
    	for range f1 /* ERROR "cannot range over f1 (value of type func()): func must be func(yield func(...) bool): wrong argument count" */ {
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 04:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. 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)
Back to top