Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 4,317 for Yield (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/decompose_reduce_dataset.mlir

        // CHECK-SAME:       _xla_compile_device_type = "TPU"
        // CHECK-SAME:       device = "/job:localhost/replica:0/task:0/device:TPU:1"
        // CHECK:            "tf.Yield"(%[[FUNC_CALL]])
        // CHECK:            "tf.Yield"(%[[ARG_5]])
        // CHECK:          "tf.Yield"(%[[HAS_VALUE]], %[[IF]])
        %1 = "tf.ReduceDataset"(%arg0, %arg1) {
          Targuments = [],
          Tstate = [i64], device = "/job:localhost/replica:0/task:0/device:TPU:1",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 18 17:16:34 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial008_an.py

    from typing_extensions import Annotated
    
    
    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
    - 531 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/hoist_loop_invariant.mlir

      ^bb0(%arg2: tensor<i32>, %arg3: tensor<i32>):
        %1 = "tf.OpA"() {is_stateless = true} : () -> tensor<i1>
        "tf.Yield"(%1) : (tensor<i1>) -> ()
      }, {
      ^bb0(%arg2: tensor<i32>, %arg3: tensor<i32>):
        %1 = "tf.GlobalIterId"() : () -> tensor<i64>
        "tf.Yield"(%arg2, %arg3) : (tensor<i32>, tensor<i32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 22 17:12:02 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.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 Mar 17 07:31:01 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops_location_roundtrip.mlir

    // tf_executor.island, tf.Identity, and tf_executor.yield).
    
    // CHECK-LABEL: "func.func"
    // CHECK: sym_name = "island_one_op_all_locs_same"
    // CHECK:    "tf_executor.graph"() ({
    // CHECK-NEXT:      "tf_executor.island"() ({
    // CHECK-NEXT:        "tf.Identity"(%{{.*}}) : (tensor<f32>) -> tensor<f32> loc("identity@some_function")
    // CHECK-NEXT:        "tf_executor.yield"(%{{.*}}) : (tensor<f32>) -> () loc("identity@some_function")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 05 14:24:12 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops_printer.mlir

        // CHECK: tf_executor.island wraps "tf.IdentityN"
        %0:3 = tf_executor.island {
          %1:2 = "tf.IdentityN"(%arg0, %arg1) : (tensor<i32>, tensor<f32>) -> (tensor<i32>, tensor<f32>) loc("identity@some_function")
          tf_executor.yield %1#0, %1#1 : tensor<i32>, tensor<f32> loc("identity@some_function")
        } loc("identity@some_function")
        tf_executor.fetch
      }
      func.return
    }
    
    // CHECK-LABEL: func @island_no_wrap_print_mismatched_results
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/cluster_formation.mlir

            %5 = "tf.D"(%4) {device = "gpu0"} : (tensor<?xi32>) -> tensor<?xi32>
            // CHECK: tf_device.return %[[D_OUTPUT]]
    
            // CHECK: tf_executor.yield %[[GPU0_OUTPUT]]
            tf_executor.yield %5 : tensor<?xi32>
          }
          tf_executor.fetch %1#0 : tensor<?xi32>
        }
        func.return %0 : tensor<?xi32>
      }
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/replicate_to_island.mlir

            tf_device.return
          }
          tf_executor.yield
        }
        %1 = tf_executor.island {
          tf_device.replicate {n = 2 : i32, devices = {CORE_0 = ["/CPU:0", "/GPU:1"]}} {
            "tf_device.launch"() ({
              "tf.opA"() : () -> ()
              tf_device.return
            }) {device = "/TPU:1"} : () -> ()
            tf_device.return
          }
          tf_executor.yield
        }
        tf_executor.fetch
      }
      func.return
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 15.1K bytes
    - Viewed (0)
Back to top