Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for then_branch (0.15 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tensorflow/tests/tensor_array_ops_decomposition.mlir

      // CHECK: %[[GVAR2:.*]] = "tf.MlirLocalVarOp"() : () -> tensor<!tf_type.resource<tensor<5x3xf32>>>
      // 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)
  3. tensorflow/compiler/mlir/tensorflow/tests/resource_op_lifting.mlir

      // CHECK: %[[CLUSTER:.*]]:2 = "tf_device.cluster"()
      %2 = "tf_device.cluster"() ({
        // CHECK: %[[IF:.*]]:2 = "tf.If"(%[[ARG0]], %[[READ0]], %[[READ1]])
        %3:2 = "tf.If"(%arg0, %0, %1) {then_branch = @if_then, else_branch = @if_else,
            is_stateless = false}
          : (tensor<i1>, tensor<*x!tf_type.resource<tensor<4xf32>>>, tensor<*x!tf_type.resource<tensor<4xf32>>>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 74K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

        } else if (auto if_op = llvm::dyn_cast<TF::IfOp>(&op)) {
          auto then_branch = if_op.then_function();
          auto else_branch = if_op.else_function();
          // Recursively handle the nested control flow.
          (void)HoistForControlFlow(&then_branch.front(), module, vars_initialized,
                                    lifted_partitioned_call_callees);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

          /*is_stateless=*/false, if_region.get_thenFuncNameAttr(),
          if_region.get_elseFuncNameAttr());
    
      // Create empty then branch region.
      auto& then_branch = host_side_if.getThenBranch();
      then_branch.push_back(new Block);
      builder.setInsertionPointToEnd(&then_branch.front());
      builder.create<mlir::TF::YieldOp>(if_region.getLoc(),
                                        /*operands=*/ArrayRef<Value>{});
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        auto original_point = rewriter.saveInsertionPoint();
        rewriter.setInsertionPointAfter(op->getParentOfType<func::FuncOp>());
        SymbolTable manager(op->getParentOfType<ModuleOp>());
    
        // Constructs `then_branch`, which is executed when `if_cond` evaluates to
        // true.
        auto then_branch_op =
            rewriter.create<func::FuncOp>(loc, "cond_true", 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)
  7. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        }
        auto else_attr =
            mlir::SymbolRefAttr::get(builder.getContext(), func_names.at(else_idx));
    
        return llvm::SmallVector<mlir::NamedAttribute, 4>{
            builder.getNamedAttr("then_branch", then_attr),
            builder.getNamedAttr("else_branch", else_attr),
            // TODO(b/139667752): Analyze statelessness correctly
            builder.getNamedAttr("is_stateless", builder.getBoolAttr(false))};
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

    `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 Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/expressionInfoProvider/Fe10IdeNormalAnalysisSourceModuleIsUsedAsExpressionTestGenerated.java

      }
    
      @Test
      @TestMetadata("when_branch.kt")
      public void testWhen_branch() {
        runTest("analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/when_branch.kt");
      }
    
      @Test
      @TestMetadata("when_branchUsed.kt")
      public void testWhen_branchUsed() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 08 19:07:43 UTC 2024
    - 76.4K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/expressionInfoProvider/FirIdeDependentAnalysisSourceModuleIsUsedAsExpressionTestGenerated.java

      }
    
      @Test
      @TestMetadata("when_branch.kt")
      public void testWhen_branch() {
        runTest("analysis/analysis-api/testData/components/expressionInfoProvider/isUsedAsExpression/when_branch.kt");
      }
    
      @Test
      @TestMetadata("when_branchUsed.kt")
      public void testWhen_branchUsed() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 08 19:07:43 UTC 2024
    - 76.4K bytes
    - Viewed (0)
Back to top