diff options
author | Benjamin Kramer <kramerb@google.com> | 2018-09-19 06:05:43 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-19 06:10:20 -0700 |
commit | 22ff5db5d4a86c155e56ec1bdf36de503109abbe (patch) | |
tree | 06ae28345e43bf2cb0dad11d911ad746d0318090 /tensorflow/compiler/tests | |
parent | 27ea406e6d43ffc0d63f61782c413fe4d8483193 (diff) |
[TF:XLA] Enable ClipByValue test for integer types
This has been fixed a while ago. Even though TF allows ClipByValue for complex
types it's not implemented anywhere (and it doesn't make sense for complex
numbers) so blacklist complex types.
PiperOrigin-RevId: 213615429
Diffstat (limited to 'tensorflow/compiler/tests')
-rw-r--r-- | tensorflow/compiler/tests/ternary_ops_test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tensorflow/compiler/tests/ternary_ops_test.py b/tensorflow/compiler/tests/ternary_ops_test.py index 55a992195f..98a07709c6 100644 --- a/tensorflow/compiler/tests/ternary_ops_test.py +++ b/tensorflow/compiler/tests/ternary_ops_test.py @@ -122,8 +122,7 @@ class TernaryOpsTest(xla_test.XLATestCase): expected=np.array([[2], [5]], dtype=dtype)) def testClipByValue(self): - # TODO(b/78258593): enable integer types here too. - for dtype in self.float_types: + for dtype in self.numeric_types - self.complex_types: test_cases = [ (np.array([2, 4, 5], dtype=dtype), dtype(7)), # (dtype(1), np.array([2, 4, 5], dtype=dtype)), # |