aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/layers/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/layers/utils.py')
-rw-r--r--tensorflow/python/layers/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/layers/utils.py b/tensorflow/python/layers/utils.py
index 5e206c3bf9..98c287e63e 100644
--- a/tensorflow/python/layers/utils.py
+++ b/tensorflow/python/layers/utils.py
@@ -198,7 +198,7 @@ def smart_cond(pred, fn1, fn2, name=None):
Tensors returned by the call to either `fn1` or `fn2`.
Raises:
- TypeError is fn1 or fn2 is not callable.
+ TypeError: If `fn1` or `fn2` is not callable.
"""
if not callable(fn1):
raise TypeError('`fn1` must be callable.')
@@ -226,7 +226,7 @@ def constant_value(pred):
True or False if `pred` has a constant boolean value, None otherwise.
Raises:
- TypeError is pred is not a Variable, Tensor or bool.
+ TypeError: If `pred` is not a Variable, Tensor or bool.
"""
if isinstance(pred, bool):
pred_value = pred