Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 66 for else_branch (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/functionalize-if.mlir

    
    // In the newly cloned function, check that we have a _tf.If operation and capture the then and else branch.
    // CHECK: func private @[[FUNCTIONALIZE_FUNC]]
    // CHECK: "tf.If"
    // CHECK-SAME:  else_branch = @[[ELSE_FUNC:[A-Za-z0-9_]*]]
    // CHECK-SAME:  then_branch = @[[THEN_FUNC:[A-Za-z0-9_]*]]
    
    // We expect the _tf.Add in the else func and the _tf.Mul in the then func
    
    // CHECK: func private @[[ELSE_FUNC]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/control_flow_upgrade_legacy_v1.py

    from tensorflow.python.ops import control_flow_ops
    
    # Tests V1 control flow is functionalized.
    
    # CHECK-NOT: tf_executor.Switch
    # CHECK-NOT: tf_executor.Merge
    # CHECK: "tf.If"
    # CHECK-SAME: else_branch = @"key/[[else:[a-zA-Z_0-9]+]]"
    # CHECK-SAME: then_branch = @"key/[[then:[a-zA-Z_0-9]+]]"
    
    # CHECK: func private @"key/[[else]]"(
    # CHECK-SAME: tf._original_func_name
    # CHECK: func private @"key/[[then]]"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 17 02:29:35 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/tests/sink_in_invariant_ops.mlir

      %cond = "tf.Const"() {device = "/CPU:0", value = dense<true> : tensor<i1>} : () -> tensor<i1>
      // CHECK: "tf.If"([[cond]], [[handle]])
      %x = "tf.If"(%cond, %handle) {then_branch = @some_other_func, else_branch = @some_other_func, is_stateless = false} : (tensor<i1>, tensor<!tf_type.resource<tensor<i32>>>) -> tensor<i32>
      %r = "tf.AddV2"(%arg, %x) {device = "/CPU:0"} : (tensor<i32>, tensor<i32>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 21K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/fuse-tftext.mlir

      %16 = "tf.Const"() {value = dense<1> : tensor<1xi32>} : () -> tensor<1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 460.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/mlrt/inline.mlir

    // CHECK: return [[z]]
    func.func @while_cond_if(%cond: tensor<i1>, %x: tensor<i1>, %y: tensor<i1>, %z: tensor<i32>) -> (tensor<i1>) {
      %r = "tf.If"(%cond, %x, %y, %z) {then_branch = @then, else_branch = @else, is_stateless = true} : (tensor<i1>, tensor<i1>, tensor<i1>, tensor<i32>) -> tensor<i1>
      return %r : tensor<i1>
    }
    
    // CHECK-LABEL: func @while_body_if
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 01:01:31 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

          if (type_from_body.has_value()) return type_from_body;
        } else if (auto if_op = llvm::dyn_cast<TF::IfOp>(use.getOwner())) {
          auto then_branch = if_op.then_function();
          auto else_branch = if_op.else_function();
          assert(then_branch && else_branch);
          auto type_from_then = GetElementTypeFromAccess(
              then_branch.getArgument(use.getOperandNumber() - 1), module,
              infer_from_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/resource-device-inference.mlir

              then_branch = @if_then_and_else,
              else_branch = @if_then_and_else, is_stateless = false}
            : (tensor<i1>, !tf_res,
               !tf_res) -> ()
          "tf.If"(%arg1, %var_handle, %id0) {
          // expected-error@above {{Conflicting device assignment for resource}}
              then_branch = @if_then_and_else,
              else_branch = @if_then_and_else,
              is_stateless = false}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 17 16:01:45 UTC 2022
    - 18.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/if_op.mlir

    // CHECK-NEXT: }
    
    func.func @main(%arg0: tensor<1xf32>, %arg1: tensor<1xf32>) -> tensor<1xf32> {
      %0 = "tfl.less"(%arg0, %arg1) : (tensor<1xf32>, tensor<1xf32>) -> tensor<1xi1>
      %1 = "tf.If"(%0, %arg0, %arg1) {else_branch = @cond_false, then_branch = @cond_true, is_stateless = false} : (tensor<1xi1>, tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
      func.return %1 : tensor<1xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

                                 decomposed_partitioned_call_callees) {
      auto then_branch = if_op.then_function();
      auto else_branch = if_op.else_function();
      auto grads = AccessedGradients({then_branch, else_branch}, module);
      auto ta_arg_buffer_type = [&](int64_t index) -> Type {
        auto it = stats->find(if_op.getOperand(index + 1));
        if (it == stats->end()) return nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-defs.pbtxt

          list {
            type: DT_INT32
            type: DT_INT32
          }
        }
      }
      attr {
        key: "_tpu_replicate"
        value {
          s: "cluster"
        }
      }
      attr {
        key: "else_branch"
        value {
          func {
            name: "cond_false"
          }
        }
      }
      attr {
        key: "then_branch"
        value {
          func {
            name: "cond_true"
            attr {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 24 00:20:25 UTC 2020
    - 7.1K bytes
    - Viewed (0)
Back to top