diff --git a/tensorflow/python/ops/clip_ops.py b/tensorflow/python/ops/clip_ops.py index bda7212c8ae..3dc0ac34c81 100644 --- a/tensorflow/python/ops/clip_ops.py +++ b/tensorflow/python/ops/clip_ops.py @@ -41,8 +41,10 @@ def clip_by_value(t, clip_value_min, clip_value_max, Args: t: A `Tensor`. - clip_value_min: A 0-D (scalar) `Tensor`. The minimum value to clip by. - clip_value_max: A 0-D (scalar) `Tensor`. The maximum value to clip by. + clip_value_min: A 0-D (scalar) `Tensor`, or a `Tensor` with the same shape + as `t`. The minimum value to clip by. + clip_value_max: A 0-D (scalar) `Tensor`, or a `Tensor` with the same shape + as `t`. The maximum value to clip by. name: A name for the operation (optional). Returns: