- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for IfRegion (0.4 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/tests/insert_custom_aggregation_ops.mlir
%0 = "tf.Sum"(%arg0, %cst_0) <{keep_dims = false}> {device = ""} : (tensor<1x4xf32>, tensor<2xi32>) -> tensor<f32> %1 = "tf.Greater"(%0, %cst) {device = ""} : (tensor<f32>, tensor<f32>) -> tensor<i1> %2:2 = "tf.IfRegion"(%1) <{_else_func_name = "cond_false_80", _then_func_name = "cond_true_70", is_stateless = true}> ({ %4 = "tf.Identity"(%cst_3) {device = ""} : (tensor<i1>) -> tensor<i1>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 32.1K bytes - Viewed (0) -
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) -
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) -
tensorflow/compiler/mlir/tensorflow/tests/constant-fold.mlir
// preserved. // // CHECK-LABEL: func @yieldOp func.func @yieldOp(%arg0: tensor<f32>, %arg1: tensor<f32>, %arg2: tensor<i1>) -> (tensor<f32>) { // CHECK-COUNT-2: tf.Yield %0 = "tf.IfRegion"(%arg2) ({ "tf.Yield"(%arg0) : (tensor<f32>) -> () }, { "tf.Yield"(%arg1) : (tensor<f32>) -> () }) { is_stateless = true}: (tensor<i1>) -> tensor<f32> func.return %0 : tensor<f32> }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 31 23:22:24 UTC 2024 - 36.7K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 18:46:23 UTC 2024 - 335.5K bytes - Viewed (0) -
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)