From 3d87c9d29736c3199e8a49aea36550c8928125b1 Mon Sep 17 00:00:00 2001 From: Andy Ly Date: Thu, 13 Aug 2020 10:47:11 -0700 Subject: [PATCH] Remove derived attributes from tf.IfRegion and tf.WhileRegion op. These derived attributes are only necessary for export, where these ops will be converted to the functional form prior. PiperOrigin-RevId: 326478653 Change-Id: Id9b4188f77d0491a15cc671eb575aff8b7ab5ebe --- tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td b/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td index 5269bb82239..8ac205c740a 100644 --- a/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td +++ b/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td @@ -338,10 +338,6 @@ else_branch: A region that computes the outputs of the op if cond = false. Variadic:$output ); - TF_DerivedOperandTypeAttr Tcond = TF_DerivedOperandTypeAttr<0>; - TF_DerivedOperandTypeListAttr Tin = TF_DerivedOperandTypeListAttr<1>; - TF_DerivedResultTypeListAttr Tout = TF_DerivedResultTypeListAttr<0>; - let regions = (region SizedRegion<1>:$then_branch, SizedRegion<1>:$else_branch); let verifier = [{ @@ -755,8 +751,6 @@ def TL_WhileRegionOp : TF_Op<"WhileRegion", ); let results = (outs Variadic:$output); - TF_DerivedOperandTypeListAttr T = TF_DerivedOperandTypeListAttr<0>; - let regions = (region SizedRegion<1>:$cond, SizedRegion<1>:$body); let verifier = [{ return Verify(*this); }];