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: 656014404
Change-Id: I289f3fa71acf50a3df4d393ed8394a48181527db
  • Loading branch information
hawkinsp authored and copybara-github committed Jul 25, 2024
1 parent c0ef082 commit 30a1bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf_agents/specs/tensor_spec_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def testFromSpec(self):
self.assertEqual(expected_spec, spec)

def testFromStringSpec(self):
spec = tensor_spec.from_spec(array_spec.ArraySpec([1], np.string_))
spec = tensor_spec.from_spec(array_spec.ArraySpec([1], np.bytes_))
self.assertEqual(tf.string, spec.dtype)


Expand Down

0 comments on commit 30a1bbe

Please sign in to comment.