Skip to content

Commit

Permalink
[numpy] Fix users of NumPy APIs that are removed in NumPy 2.0.
Browse files Browse the repository at this point in the history
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: 656958934
  • Loading branch information
hawkinsp authored and SeqIO committed Jul 28, 2024
1 parent e88bb6c commit 2a819e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seqio/evaluation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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..."]},
Expand Down

0 comments on commit 2a819e8

Please sign in to comment.