Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for then_branch (0.21 sec)

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

      // 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/tensorflow/tests/region-control-flow-to-functional.mlir

    // CHECK: func private @tf.IfRegion_else
    // CHECK-NEXT: "tf.Neg"
    // CHECK: func private @tf.IfRegion_then
    // CHECK-NEXT: "tf.Abs"
    
    func.func @testNested(%arg0: tensor<i1>, %arg1: tensor<*xf32>) -> tensor<*xf32> {
      // CHECK: "tf.If"({{.+}}) <{else_branch = @tf.IfRegion1_else, {{.+}} then_branch = @tf.IfRegion1_then}
      %0 = "tf.IfRegion"(%arg0) ({
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc

                                  /*operands=*/else_returns);
    
      // Then branch gets the data and calls the reduce_function.
      auto& then_branch = dataset_if.getThenBranch();
      then_branch.push_back(new Block);
      builder.setInsertionPointToEnd(&then_branch.front());
      // Add iterator operational data access inside if.
      auto get_value = builder.create<TF::OptionalGetValueOp>(loc, dataset_types,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

        bool* has_outside_compilation) {
      // Instantiate "then_branch" and "else_branch".
      NameAttrList then_branch, else_branch;
      TF_RETURN_IF_ERROR(GetNodeAttr(n->attrs(), "then_branch", &then_branch));
      TF_RETURN_IF_ERROR(GetNodeAttr(n->attrs(), "else_branch", &else_branch));
    
      // Extract outside compilation for then_branch and else_branch.
      bool then_branch_has_outside_compilation = false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/tpu_tail_with_tobool_op.mlir

        %4 = "tf.If"(%3, %3, %arg0, %cst) {_tpu_replicate = "cluster", _xla_outside_compilation = "0", device = "", else_branch = @if_else_branch, is_stateless = false, then_branch = @if_then_branch} : (tensor<*xi1>, tensor<*xi1>, tensor<*xi64>, tensor<i64>) -> tensor<*xi1>
        func.return %4 : tensor<*xi1>
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 21:23:47 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/fuse-tftext.mlir

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

    // CHECK: [[z:%.*]] = mlrt.cond [[cond]] @then @else
    // 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)
  8. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

        } 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)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

        llvm::StringMap<PartitionedCallDecompositionInfo>*
            decomposed_partitioned_call_callees) {
      // 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(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

        TF_Int32Tensor:$max_num_elements
      );
    }
    
    def TF_IfOp : TF_Op<"If", [DeclareOpInterfaceMethods<SymbolUserOpInterface>]> {
      let summary = "output = cond ? then_branch(input) : else_branch(input)";
    
      let description = [{
    output = cond ? then_branch(input) : else_branch(input)
    
    cond: A Tensor. If the tensor is a scalar of non-boolean type, the
        scalar is converted to a boolean according to the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
Back to top