aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/framework
diff options
context:
space:
mode:
authorGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-11 08:37:37 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-11 08:37:45 -0700
commit58a42a0e23466a47d636b097b5d665016e9837aa (patch)
tree8f935185a830598c6b1785fad7de21b8cc12c0e8 /tensorflow/python/framework
parent9e0f9c0f212bbc09ef9baf02f9536cc15ed7eead (diff)
parent542fb58cf5f66899479602c70659d59897249101 (diff)
Merge pull request #22175 from yongtang:09102018-np.floating
PiperOrigin-RevId: 212456799
Diffstat (limited to 'tensorflow/python/framework')
-rw-r--r--tensorflow/python/framework/test_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/framework/test_util.py b/tensorflow/python/framework/test_util.py
index d63abd7f01..b33cc8f544 100644
--- a/tensorflow/python/framework/test_util.py
+++ b/tensorflow/python/framework/test_util.py
@@ -1663,7 +1663,7 @@ class TensorFlowTestCase(googletest.TestCase):
if any of the elements do not fall in the specified range.
"""
target = self._GetNdArray(target)
- if not (np.issubdtype(target.dtype, np.float) or
+ if not (np.issubdtype(target.dtype, np.floating) or
np.issubdtype(target.dtype, np.integer)):
raise AssertionError(
"The value of %s does not have an ordered numeric type, instead it "