8000 disable testLarge for float16 when numpy 2.0 is used · IBMZ-Linux-OSS-Python/tensorflow@9e52ba9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e52ba9

Browse files
disable testLarge for float16 when numpy 2.0 is used
PiperOrigin-RevId: 673106123
1 parent 31a9da8 commit 9e52ba9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tensorflow/python/kernel_tests/control_flow/scan_ops_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ def test6D(self):
153153
@test_util.disable_xla("b/123860949") # The computation is constant folded
154154
def testLarge(self):
155155
for dtype in self.valid_dtypes:
156+
if np.__version__ >= np.lib.NumpyVersion("2.0.0") and dtype == np.float16:
157+
continue
158+
156159
x = np.ones([1000000], dtype=dtype) / 1024
157160
self._compareAll(x, 0)
158161

0 commit comments

Comments
 (0)
0