Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 63 of 63 for else_branch (0.16 sec)

  1. 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
        %0 = "tf.IfRegion"(%arg0) ( {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    LogicalResult IfOp::verifySymbolUses(SymbolTableCollection& symbol_table) {
      auto branch_name = [](unsigned index) -> std::string {
        return index == 0 ? "'then_branch'" : "'else_branch'";
      };
      return VerifyCaseOrIfOpBranchFunctions(
          symbol_table, *this, {getThenBranchAttr(), getElseBranchAttr()},
          branch_name);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/g3doc/tf_dialects.md

      // arguments: the condition returns a bool and the two branches must return
      // the same type, which is also the return of the tf.If.
      %value = "tf.If”(%added, %mul)
                 {cond: @cond_func, true_branch: @func_foo, false_branch: @func_bar}
                     : (tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32>
    
      return %value : tensor<*xf32>
    }
    ```
    
    ## TensorFlow Executor Dialect
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 16K bytes
    - Viewed (0)
Back to top