diff --git a/tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td b/tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td index fd24b7284c1..957ba4909a9 100644 --- a/tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td +++ b/tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td @@ -8317,8 +8317,9 @@ def TF_StackV2Op : TF_Op<"StackV2", []> { ); } -def TF_StopGradientOp : TF_Op<"StopGradient", [NoSideEffect, SameOperandsAndResultType]> { - let summary = "Stops gradient computation."; +def TF_StopGradientOp : TF_Op<"StopGradient", + [NoSideEffect, TF_AllTypesMatch<["input", "output"]>]> { + let summary = "Stops gradient computation"; let description = [{ When executed in a graph, this op outputs its input tensor as-is.