From fc5cf66cb9c78457b2f8d6de53c4e4b2e0b3a264 Mon Sep 17 00:00:00 2001 From: Peter Hawkins Date: Thu, 25 Jul 2024 06:55:47 -0700 Subject: [PATCH] [numpy] Fix users of NumPy APIs that are removed in NumPy 2.0. This change migrates users of APIs removed in NumPy 2.0 to their recommended replacements (https://numpy.org/devdocs/numpy_2_0_migration_guide.html). PiperOrigin-RevId: 655939518 --- seqio/evaluation_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seqio/evaluation_test.py b/seqio/evaluation_test.py index 3b2092cd..68c541ec 100644 --- a/seqio/evaluation_test.py +++ b/seqio/evaluation_test.py @@ -1323,7 +1323,7 @@ def test_metric_with_arbitrary_model_input_types(self): {"targets": np.ones(2**6).reshape((2, 2, 2, 2, 2, 2))}, ], [ - {"targets": np.zeros((2, 2), dtype=np.complex_)}, + {"targets": np.zeros((2, 2), dtype=np.complex128)}, ], [ {"targets": ["hello darkness, my old friend..."]},