Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for IfRegion (0.12 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/prepare_tpu_computation_for_tf_export.mlir

      func.return
    }
    
    // CHECK-LABEL: @IfOpTokenAttrs
    func.func @IfOpTokenAttrs(%arg0: tensor<i1>, %arg1: tensor<f32>) -> (tensor<f32>) {
      // CHECK: tf.IfRegion
      %0 = "tf.IfRegion"(%arg0) ({
          // CHECK: tf.XlaRecvFromHost
          // CHECK-SAME-DAG: _xla_original_oc_node_name =
          // CHECK-SAME-DAG: _xla_token_input_nodes = ["_xla_token_arg_node"]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 18:46:36 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

      // CHECK: "tf.If"({{.+}}) <{else_branch = @tf.IfRegion1_else, {{.+}} then_branch = @tf.IfRegion1_then}
      %0 = "tf.IfRegion"(%arg0) ({
        // Outer Then
        %cond = "tf.LogicalNot"(%arg0) : (tensor<i1>) -> tensor<i1>
        %asin = "tf.Asin"(%arg1) : (tensor<*xf32>) -> tensor<*xf32>
    
        // nested IfRegion
        %1 = "tf.IfRegion"(%cond) ({
            %2 = "tf.Abs"(%asin) : (tensor<*xf32>) -> tensor<*xf32>
    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/tests/mark_ops_for_outside_compilation.mlir

        // CHECK-NOT:  _xla_outside_compilation
        // CHECK:      "tf.IfRegion"
        // CHECK:        "tf.StringToNumber"
        // CHECK-SAME:   _xla_outside_compilation
        %1 = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
        %2 = "tf.IfRegion"(%arg0) ({
          %3 = "tf.StringToNumber"(%arg1) {out_type = f32} : (tensor<!tf_type.string>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 16:22:32 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

                                      {"tf.Yield"(%if12) : (!tf_variant) -> ()})
            {is_stateless = true} : (tensor<i1>) -> !tf_variant
        %if14 = "tf.IfRegion"(%arg0) ({"tf.Yield"(%if13) : (!tf_variant) -> ()},
                                      {"tf.Yield"(%if13) : (!tf_variant) -> ()})
            {is_stateless = true} : (tensor<i1>) -> !tf_variant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/insert_calibration_statistics_saver.mlir

        return %1 : tensor<1x3xf32>
      }
    }
    
    // -----
    
    // Check the IfRegion is set to stateful.
    module attributes {tf.versions = {bad_consumers = [], min_consumer = 12 : i32, producer = 1833 : i32}, tf_saved_model.semantics} {
      // CHECK-LABEL: func.func @serving_default
      // CHECK: "tf.IfRegion"
      // CHECK-SAME: is_stateless = false
    
      // CHECK: "tf.CalibrationStatisticsSaver"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.h

                                       llvm::ArrayRef<func::FuncOp> functions,
                                       const BacktrackAnalysis& backtrack_analysis);
    
      // Analyzes tf.CaseRegion/tf.IfRegion ops to compute resource IDs.
      void AnalyzeRegionCaseOrIfOp(Operation* case_or_if_op,
                                   const BacktrackAnalysis& backtrack_analysis);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

      let summary = "Merges IfRegion ops together with a common predicate.";
    
      let description = [{
        This pass merges IfRegion ops together if they have the same predicate and it
        is safe to do so (there are no intermediate dependencies, they are in the
        same block, etc).
    
        For example:
    
        ```mlir
        "tf.IfRegion"(%0) ( {
          %2 = "tf.A"() : () -> (tensor<f32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

    ==============================================================================*/
    
    // This transformation pass transforms functional control flow operations in the
    // TensorFlow dialect to their region based counterparts, i.e.,
    // tf.If -> tf.IfRegion and tf.While -> tf.WhileRegion
    
    #include "llvm/Support/raw_ostream.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

    LogicalResult SetTokenInputAttrs(ModuleOp module) {
      // Collect all the ops that needs to have token input names attributes. These
      // ops are communication ops and all their parent ops via nesting or function
      // calls. For example, IfRegion op and PartitionedCall op.
      std::vector<Operation*> worklist;
      absl::flat_hash_set<Operation*> ops_with_tokens;
      module.walk([&](Operation* op) {
        if (IsCommunicationOp(op)) {
          ops_with_tokens.insert(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

    ==============================================================================*/
    
    // This transformation pass transforms region bases control flow operations in
    // the TensorFlow dialect to their functional counterparts, i.e.,
    // tf.IfRegion ->  tf.If and tf.WhileRegion -> tf.While
    
    #include <iterator>
    #include <memory>
    #include <optional>
    #include <string>
    
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SetVector.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top