Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for IfRegion (0.25 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/merge_control_flow.mlir

    // can be merged but not 2nd IfRegion and 2nd IfRegion should be moved after
    // newly merged IfRegion.
    
    // CHECK-LABEL: func @same_predicate_3_ifregions_reorder
    func.func @same_predicate_3_ifregions_reorder() {
      // CHECK:      tf_device.cluster
      // CHECK:        "tf.IfRegion"
      // CHECK:          "tf.A"
      // CHECK:          "tf.G"
      // CHECK-NEXT    "tf.IfRegion"
      // CHECK:          "tf.E"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 63.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc

          first_if_else_block.without_terminator().end(), second_if_else_body,
          second_if_else_body.begin(), std::prev(second_if_else_body.end()));
    }
    
    // Check if the `last` IfRegion can be added to the segment of
    // IfRegion start with `first` IfRegion.
    bool CanAddToIfSegment(
        IfOpIterConst first, IfOpIterConst last,
        const llvm::SmallVector<mlir::TF::IfRegionOp, 8>& if_ops,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/rewrite_tpu_embedding_ops.mlir

    }
    
    // CHECK-LABEL: func @doubly_nested_embedding_op
    func.func @doubly_nested_embedding_op(%arg0: tensor<i1>, %arg1: tensor<i1>, %arg2: tensor<512x256xf32>) -> (tensor<512x256xf32>) {
      %2 = "tf.IfRegion"(%arg0) ({
        %1 = "tf.IfRegion"(%arg1) ({
          // CHECK: "tf.XlaRecvTPUEmbeddingDeduplicationData"
          // CHECK: "tf.XlaRecvTPUEmbeddingActivations"
          // CHECK-NOT: tf.RecvTPUEmbeddingActivations
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/convert_tf_control_flow_to_scf.cc

        // `tf_then_or_else_region` is the `then` or `else` region of the
        // `tf.IfRegion` op and `scf_then_or_else_region` is the `then` or `else`
        // region of the new `scf.if` op. Further, `tf_if_region_return_type` is the
        // list of return types of the `tf.IfRegion` op.
        auto createScfThenOrElse = [](Region& tf_then_or_else_region,
                                      Region& scf_then_or_else_region,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/convert-tf-control-flow-to-scf.mlir

    // RUN: tf-opt -convert-tf-control-flow-to-scf %s | FileCheck %s
    
    // `tf.IfRegion` which returns values gets converted to `scf.if`.
    func.func private @test_if_then1(tensor<4xf32>) -> tensor<4xf32>
    func.func private @test_if_else1(tensor<4xf32>) -> tensor<4xf32>
    // CHECK-LABEL: func @test_supported_lowering_of_tf_if_region1
    // CHECK-SAME: (%[[ARG0:.*]]: tensor<i1>, %[[ARG1:.*]]: tensor<4xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/prepare_tpu_computation_for_tf_export.mlir

      func.return
    }
    
    // CHECK-LABEL: @IfOpTokenAttrs
    func.func @IfOpTokenAttrs(%arg0: tensor<i1>, %arg1: tensor<f32>) -> (tensor<f32>) {
      // CHECK: tf.IfRegion
      %0 = "tf.IfRegion"(%arg0) ({
          // CHECK: tf.XlaRecvFromHost
          // CHECK-SAME-DAG: _xla_original_oc_node_name =
          // CHECK-SAME-DAG: _xla_token_input_nodes = ["_xla_token_arg_node"]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 18:46:36 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

      // CHECK: "tf.If"({{.+}}) <{else_branch = @tf.IfRegion1_else, {{.+}} then_branch = @tf.IfRegion1_then}
      %0 = "tf.IfRegion"(%arg0) ({
        // Outer Then
        %cond = "tf.LogicalNot"(%arg0) : (tensor<i1>) -> tensor<i1>
        %asin = "tf.Asin"(%arg1) : (tensor<*xf32>) -> tensor<*xf32>
    
        // nested IfRegion
        %1 = "tf.IfRegion"(%cond) ({
            %2 = "tf.Abs"(%asin) : (tensor<*xf32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/extract_outside_compilation.mlir

          tf_device.return %2 : tensor<2xi32>
        }
    
        func.return %1 : tensor<2xi32>
      }
    
      // Tests extraction of an outside compiled tf.IfRegion op where the entirety
      // of tf.IfRegion op is outside compiled and wrapped inside another
      // tf.IfRegion op
    
      // CHECK-LABEL: func @outside_compiled_tf_if_nested
      func.func @outside_compiled_tf_if_nested(%arg0: tensor<2xi32>) -> tensor<2xi32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 129.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/mark_ops_for_outside_compilation.mlir

        // CHECK-NOT:  _xla_outside_compilation
        // CHECK:      "tf.IfRegion"
        // CHECK:        "tf.StringToNumber"
        // CHECK-SAME:   _xla_outside_compilation
        %1 = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
        %2 = "tf.IfRegion"(%arg0) ({
          %3 = "tf.StringToNumber"(%arg1) {out_type = f32} : (tensor<!tf_type.string>) -> 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)
  10. tensorflow/compiler/mlir/tensorflow/tests/functional-control-flow-to-regions.mlir

        then_branch = @testIf1Then, else_branch = @testIf1Else, is_stateless = false,
        _attr0 = 10, _attr1 = true, attr2 = "hello"
      } : (tensor<i1>, tensor<*xf32>) -> tensor<*xf32>
    
      // CHECK: "tf.IfRegion"
      // CHECK-SAME: <{_else_func_name = "testIf1Else"
      // CHECK-SAME: _then_func_name = "testIf1Then"
      // CHECK-SAME: is_stateless = false
      // CHECK: [[Result0:%.*]] = func.call @testIf1Then
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 06 21:59:28 UTC 2023
    - 11.9K bytes
    - Viewed (0)
Back to top