Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for else_branch (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/jit/compilability_check_util.cc

      if (!s.ok()) {
        *uncompilable_reason = s.message();
        return false;
      }
      return true;
    }
    
    // Tests whether 'if_node' is compilable. Every operator in the then_branch and
    // else_branch functions must be compilable for 'if_node' to be compilable.
    bool RecursiveCompilabilityChecker::IsCompilableIf(
        const Node& if_node, FunctionLibraryRuntime* lib_runtime,
        std::vector<StackFrameView>* stack_trace,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/freeze_variables.mlir

        %1 = "tf.If"(%arg0, %arg1, %handle) {
          then_branch = @testIfThen, else_branch = @testIfElse, is_stateless = false
        } : (tensor<i1>, tensor<2xf32>, tensor<!tf_type.resource<tensor<0xf32>>>) -> tensor<2xf32>
    
        func.return %1 : tensor<2xf32>
      }
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/breakup-islands.mlir

      %0 = tf_executor.graph {
        %output, %control = tf_executor.island {
          // CHECK: {{%.+}}, [[IF_CONTROL:%.+]] = tf_executor.island wraps "tf.If"
          %1 = "tf.If"(%arg0, %arg1) {device = "", else_branch = @stateful_composite_op_control_else, is_stateless = false, then_branch = @stateful_composite_op_control_then} : (tensor<i1>, tensor<*x!tf_type.resource<tensor<i32>>>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 28.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list.mlir

    // CHECK:  [[SHAPE_1:%.*]] = "tf.Shape"([[INPUT]]) : (tensor<3x10xf32>) -> tensor<?xi32>
    // CHECK:  [[RESULT:%.*]] = "tf.If"([[DIFF_RES]], [[INPUT]], [[SHAPE_1]], [[SIZE_DIFF]], [[SIZE]]) <{else_branch = @cond_false, is_stateless = true, then_branch = @cond_true}> : (tensor<i1>, tensor<3x10xf32>, tensor<?xi32>, tensor<i32>, tensor<i32>) -> tensor<?x10xf32>
    // CHECK:  return [[RESULT]] : tensor<?x10xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/stack_ops_decomposition.mlir

      // CHECK-NOT: tf.Stack
      %stack = "tf.StackV2"(%max_size) {elem_type = f32, stack_name = "s"} : (tensor<i32>) -> tensor<!tf_type.resource>
      %if_op = "tf.If"(%arg0, %stack) {then_branch = @if_then, else_branch = @if_else, is_stateless = false}
        : (tensor<i1>, tensor<!tf_type.resource>) -> tensor<!tf_type.resource>
      // CHECK: "tf.Slice"
      %pop = "tf.StackPopV2"(%if_op) : (tensor<!tf_type.resource>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/compilability_check_util_test.cc

          NodeBuilder(kFunctionalIfNodeName, "If", &root.graph()->flib_def())
              .Input(predicate.node())
              .Input(if_inputs)
              .Attr("then_branch", uncompilable_fn1_attr)
              .Attr("else_branch", uncompilable_fn2_attr)
              .Attr("Tout", {DT_INT32})
              .Finalize(root.graph(), &if_node));
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      TF_ASSERT_OK(root.ToGraph(graph.get()));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/testdata/outside_compilation.mlir

          %outputs_65,...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 19 20:19:45 UTC 2023
    - 21.9K bytes
    - Viewed (0)
Back to top