Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for else_branch (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/decompose_optionals.mlir

    // CHECK-LABEL: @if
    func.func @if() {
      // CHECK-NOT: Optional
      %0 = builtin.unrealized_conversion_cast to tensor<5xi1>
      %1 = "tf.OptionalNone"() : () -> tensor<!tf_type.variant<tensor<f32>>>
      %2 = "tf.If"(%0, %1) <{else_branch = @false, is_stateless = false, then_branch = @true}>
          : (tensor<5xi1>, tensor<!tf_type.variant<tensor<f32>>>) -> (tensor<!tf_type.variant<tensor<f32>>>)
      return
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        CreateCondTrueBranch(op, shape_dtype, result_type, then_branch_op,
                             &rewriter);
        then_branch_op.setVisibility(func::FuncOp::Visibility::Private);
    
        // Constructs `else_branch`, which is executed when `if_cond` evaluates to
        // false.
        auto else_branch_op =
            rewriter.create<func::FuncOp>(loc, "cond_false", func_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

        `tf.IfRegion` and `tf.While` is transformed to `tf.WhileRegion`.
    
        For example, this functional operation
    
        ```mlir
          %0 = "tf.If"(%arg0, %arg1) {
            then_branch = @then_branch_func, else_branch = @else_branch_func, is_stateless = false
          } : (tensor<i1>, tensor<*xf32>) -> tensor<*xf32>
        ```
    
        will be transformed into this region-based operation
    
        ```mlir
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
Back to top