aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/util/tf_should_use.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/util/tf_should_use.py')
-rw-r--r--tensorflow/python/util/tf_should_use.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/util/tf_should_use.py b/tensorflow/python/util/tf_should_use.py
index 37733152e8..a576547d5f 100644
--- a/tensorflow/python/util/tf_should_use.py
+++ b/tensorflow/python/util/tf_should_use.py
@@ -44,7 +44,7 @@ def _add_should_use_warning(x, fatal_error=False):
and is a very shallow wrapper for `x` which logs access into `x`.
"""
del fatal_error
- if x is None or x == []: # pylint: disable=g-explicit-bool-comparison
+ if x is None: # special corner case where x is None
return x
if context.in_eager_mode():