Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for IfRegion (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tensor_list_ops_decomposition.mlir

      // CHECK: %[[BUFFER:.*]] = "tf.BroadcastTo"(%[[ZERO_F32]], %[[MAX_SIZE]])
      // CHECK: %[[BUFFER_SIZE:.*]] = "tf.Const"() <{value = dense<0> : tensor<1xi32>}>
      // CHECK-NOT: tf.EmptyTensorList
      %if_op = "tf.IfRegion"(%arg0) ({
          %elem = "tf._SomeOp"() : () -> tensor<f32>
          // CHECK: %[[UPDATE:.*]] = "tf.XlaDynamicUpdateSlice"
          // CHECK: %[[ONE:.*]] = "tf.Const"() <{value = dense<1> : tensor<1xi32>}> : () -> tensor<1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 38.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      std::string retvals_communication_key =
          llvm::formatv("host_compute_channel_{0}_retvals",
                        (communication_key_index))
              .str();
    
      // Use a unique name when sending just the IfRegion predicate.  This is
      // for readable and to match the key in the TF2XLA bridge.
      if (clustered_ops.size() == 1 && llvm::isa<mlir::TF::IfRegionOp>(op) &&
          external_operands.size() == 1) {
        args_communication_key =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/fuse-tftext.mlir

      %18 = "tf.Equal"(%17, %4) {device = "", incompatible_shape_error = true} : (tensor<i64>, tensor<i64>) -> tensor<i1>
      %19 = "tf.All"(%18, %5) {device = "", keep_dims = false} : (tensor<i1>, tensor<0xi32>) -> tensor<i1>
      %20 = "tf.IfRegion"(%19) ({
        %72 = "func.call"(%19, %17, %4) {callee = @RaggedFromNestedRowSplits_RaggedFromRowSplits_RowPartitionFromRowSplits_assert_equal_1_Assert_AssertGuard_true_27770} : (tensor<i1>, tensor<i64>, tensor<i64>) -> tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 460.3K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

        types of inputs must match the signature of the operation that contains the
        region.
      }];
    
      let arguments = (ins Variadic<AnyType>);
    }
    
    def TF_IfRegionOp : TF_Op<"IfRegion",
          [SingleBlockImplicitTerminator<"YieldOp">, NoRegionArguments,
           DeclareOpInterfaceMethods<RegionBranchOpInterface, [
               "areTypesCompatible",
               "getEntrySuccessorOperands",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      func.return %0, %1 : tensor<4x4xf32>, tensor<3x4xi32>
    }
    
    // CHECK-LABEL: @ifRegion
    // CHECK-SAME:  ([[ARG0:%.+]]: tensor<f32>, [[ARG1:%.+]]: tensor<f32>)
    func.func @ifRegion(%arg0: tensor<f32>, %arg1: tensor<f32>) -> (tensor<f32>) {
      // CHECK: [[VAL0:%.+]] = mhlo.compare GT, [[ARG0]], [[ARG1]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize_hlo.mlir

    // CHECK-LABEL:  func @if
    // CHECK-DAG:      %[[CST_0:.*]] = arith.constant dense<0> : tensor<i32>
    // CHECK-DAG:      %[[CST_1:.*]] = arith.constant dense<1000> : tensor<i32>
    // CHECK:          %[[RES:.*]]  = "tf.IfRegion"(%arg0) <{is_stateless = false}> ({
    // CHECK:            "tf.Yield"(%[[CST_0]]) : (tensor<i32>) -> ()
    // CHECK:          }, {
    // CHECK:            "tf.Yield"(%[[CST_1]]) : (tensor<i32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 340.2K bytes
    - Viewed (0)
Back to top