aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/clip_ops.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/ops/clip_ops.py')
-rw-r--r--tensorflow/python/ops/clip_ops.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tensorflow/python/ops/clip_ops.py b/tensorflow/python/ops/clip_ops.py
index bda7212c8a..3dc0ac34c8 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: