Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for IfRegion (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/extract_outside_compilation.mlir

          tf_device.return %2 : tensor<2xi32>
        }
    
        func.return %1 : tensor<2xi32>
      }
    
      // Tests extraction of an outside compiled tf.IfRegion op where the entirety
      // of tf.IfRegion op is outside compiled and wrapped inside another
      // tf.IfRegion op
    
      // CHECK-LABEL: func @outside_compiled_tf_if_nested
      func.func @outside_compiled_tf_if_nested(%arg0: tensor<2xi32>) -> tensor<2xi32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 129.6K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

    // -----
    
    // Test invalid tf.Yield operation (parent should be IfRegion)
    func.func @testInvalidYieldOp(%arg0: f32) -> () {
      // expected-error @+1 {{'tf.Yield' op expects parent op to be one of 'tf.CaseRegion, tf.IfRegion, tf.WhileRegion, tf.GeneratorDatasetRegion'}}
      "tf.Yield"(%arg0) : (f32) -> ()
    }
    
    // -----
    
    // Test valid tf.IfRegion operation
    // CHECK-LABEL: func @testValidIfRegionOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      // However, its probably better to fold the IfRegion instead of having the
      // dead branch stay.
    
      // Inline the region in place of the IfRegion op, and forward the yield
      // inputs to the IfRegion op results. This is possible only if the yield
      // types match the result types.
      auto yield = cast<YieldOp>(region.front().getTerminator());
      auto updated_results = llvm::to_vector<4>(yield.getOperands());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/side-effect-analysis-test.mlir

      func.return %graph : tensor<i1>
      // expected-remark@above {{ID: 4}}
      // expected-remark@above {{Sinks: {}}}
    }
    
    // -----
    
    // Tests that the pass does not add control dependencies for a stateless
    // IfRegion op.
    
    // CHECK-LABEL: func @stateless_ifregion_op
    func.func @stateless_ifregion_op(
      // expected-remark@above {{ID: 18}}
      %arg0: tensor<*x!tf_type.resource<tensor<32xf32>>>,
      %arg1: tensor<i1>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 129.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      %true = "tf.Const"() {value = dense<true> : tensor<i1>} : () -> tensor<i1>
    
      // CHECK: [[Val0:%.*]] = "tf.Mul"(%arg0, %arg1)
      // CHECK-SAME: device = "/job:localhost/replica:0/task:0/device:GPU:0"
      %0 = "tf.IfRegion"(%true) ({
          %true_value = "tf.Mul"(%arg0, %arg1) {device = "/job:localhost/replica:0/task:0/device:GPU:0"} : (tensor<f32>, tensor<f32>) -> tensor<f32>
          "tf.Yield"(%true_value) : (tensor<f32>) -> ()
        }, {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      bool InferShapeForRestore(Operation* op);
    
      // Infers the shape IfOp outputs based on the shapes of the then and else
      // function result types.
      bool InferShapeForIf(IfOp op);
    
      // Infers the shape IfRegion outputs based on the shapes of the then and else
      // yields.
      bool InferShapeForIfRegion(IfRegionOp op);
    
      // Infers the shape CaseOp outputs based on the shapes of branch function
      // result types.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/tpu_rewrite.mlir

      func.func @cluster(%arg0 : tensor<i1>) {
        "tf_device.parallel_execute"() ({
          "tf.IfRegion"(%arg0) ({
            // expected-error@+1 {{The ParallelExecute ancestor of a ClusterFunc must be its direct parent.}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 172.9K bytes
    - Viewed (0)
Back to top