From 5d1368571f776151096da7777c4cc81690305702 Mon Sep 17 00:00:00 2001 From: Andy Ly Date: Wed, 10 Jun 2020 17:31:58 -0700 Subject: [PATCH] Update TF MLIR ODS for tf.CollectiveBcastRecv, tf.CollectiveBcastSend, tf.CollectiveGather, tf.CollectiveReduce, and tf.TPUReplicatedInput. Ops have additional attributes with default values added to them in TensorFlow op registry. PiperOrigin-RevId: 315802211 Change-Id: I20e404a40163ce4e596220fe5a76e1dfb74825c1 --- .../mlir/tensorflow/ir/tf_generated_ops.td | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td b/tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td index b64750078c8..f94364c5516 100644 --- a/tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td +++ b/tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td @@ -1353,7 +1353,8 @@ def TF_CollectiveBcastRecvOp : TF_Op<"CollectiveBcastRecv", []> { I64Attr:$group_key, I64Attr:$instance_key, TF_ShapeAttr:$shape, - DefaultValuedAttr:$communication_hint + DefaultValuedAttr:$communication_hint, + DefaultValuedAttr:$timeout_seconds ); let results = (outs @@ -1376,7 +1377,8 @@ def TF_CollectiveBcastSendOp : TF_Op<"CollectiveBcastSend", []> { I64Attr:$group_key, I64Attr:$instance_key, TF_ShapeAttr:$shape, - DefaultValuedAttr:$communication_hint + DefaultValuedAttr:$communication_hint, + DefaultValuedAttr:$timeout_seconds ); let results = (outs @@ -1401,7 +1403,8 @@ Mutually accumulates multiple tensors of identical type and shape. I64Attr:$group_key, I64Attr:$instance_key, TF_ShapeAttr:$shape, - DefaultValuedAttr:$communication_hint + DefaultValuedAttr:$communication_hint, + DefaultValuedAttr:$timeout_seconds ); let results = (outs @@ -1429,7 +1432,8 @@ Mutually reduces multiple tensors of identical type and shape. TF_AnyStrAttrOf<["Id", "Div"]>:$final_op, I64ArrayAttr:$subdiv_offsets, DefaultValuedAttr:$wait_for, - DefaultValuedAttr:$communication_hint + DefaultValuedAttr:$communication_hint, + DefaultValuedAttr:$timeout_seconds ); let results = (outs @@ -8977,7 +8981,8 @@ The above computation has a replicated input of two replicas. Variadic:$inputs, DefaultValuedAttr:$is_mirrored_variable, - DefaultValuedAttr:$index + DefaultValuedAttr:$index, + DefaultValuedAttr:$is_packed ); let results = (outs