Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for else_branch (0.34 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

        tensors, whose types are the same as what else_branch returns.
    else_branch: A function that takes 'inputs' and returns a list of
        tensors.  whose types are the same as what then_branch returns.
      }];
    
      let arguments = (ins
        TF_Tensor:$cond,
        Variadic<TF_Tensor>:$input,
    
        FlatSymbolRefAttr:$then_branch,
        FlatSymbolRefAttr:$else_branch,
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/tensor_array_ops_decomposition.mlir

      // CHECK: "tf.If"(%[[COND]], %[[VAR]], %[[GVAR1]], %[[GVAR2]])
      %1 = "tf.If"(%cond, %ta#0) {
        then_branch = @then_branch, else_branch = @else_branch, device = "", is_stateless = false}
           : (tensor<i1>, tensor<!tf_type.resource>) -> tensor<!tf_type.resource>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 49K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/control_flow.mlir

      // CHECK: [[cond_res:%.*]]:2 = tfrt.cond [[cond]]
      // CHECK-SAME: @cond_true @cond_false(%arg0, %arg2) : (!tfrt.chain, !tfrt_fallback.tf_tensor)
      %2 = "tf.If"(%arg0, %arg1) {else_branch = @cond_false, then_branch = @cond_true, is_stateless = true} : (tensor<i1>, tensor<i32>) -> tensor<i32>
      // CHECK: [[out_ch:%.*]] = tfrt.merge.chains [[cond_res]]#0, %arg0 : !tfrt.chain, !tfrt.chain
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 00:40:32 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/resource_op_lifting.mlir

        // CHECK: tf_device.return [[TRUE]] :
        tf_device.return %13 : tensor<i1>
      }) : () -> tensor<i1>
      func.return
    }
    
    // CHECK-LABEL: func @case_branch
    func.func @case_branch(%arg0: !tf_res) -> tensor<i1> {
      // CHECK: [[TRUE:%.+]] = "tf.Const"
      // CHECK-SAME: value = dense<true> : tensor<i1>
      %0 = "tf.VarIsInitializedOp"(%arg0) : (!tf_res) -> tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 74K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

      // Rewrite the branches.
      Region& then_branch = if_op.getThenBranch();
      Region& else_branch = if_op.getElseBranch();
      if (failed(DecomposeTensorListOpsInternal(
              &then_branch.front(), module, buffer_to_size,
              decomposed_partitioned_call_callees)))
        return failure();
      if (failed(DecomposeTensorListOpsInternal(
              &else_branch.front(), module, buffer_to_size,
              decomposed_partitioned_call_callees)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

      // Build the XLA computation func.
      // "const0" (bool)
      // "const1" (int32)
      // "if0" (pred = "const0", input = "const1", then_branch = "true_fn",
      //        else_branch = "false_fn")
      FunctionDefLibrary fdl;
      {
        tensorflow::Scope s = tensorflow::Scope::NewRootScope();
        Output arg = ops::_Arg(s.WithOpName("arg"), DT_INT32, 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

    namespace tensorflow {
    
    TEST(RearrangeFunctionArgumentForFunctionTest, Basic) {
      FunctionDefLibrary fdl;
      {
        // Function for StatefulPartitionedCall's "f", If's
        // "then_branch"/"else_branch".
        // "arg0" (T=DT_RESOURCE), "arg1" (T=DT_BOOL)
        // "ret0" = "arg1"
        // "ret1" = "arg0"
        tensorflow::Scope s = tensorflow::Scope::NewRootScope();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top