Skip to content

Commit

Permalink
update test_tensorflow_keras_models for numpy.str deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelnutt2 committed Jul 24, 2023
1 parent 8da1ac0 commit 791ee23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/test_tensorflow_keras_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def test_save_load_with_sequence_features(self, tmpdir, loss, optimizer, metrics
indices_a[:, 0] = np.arange(10)
inputs_a = tf.SparseTensor(indices_a, values_a, (batch_size, timesteps, 1))

values_b = np.zeros(10, dtype=np.str)
values_b = np.zeros(10, dtype=str)
indices_b = np.zeros((10, 3), dtype=np.int64)
indices_b[:, 0] = np.arange(10)
inputs_b = tf.SparseTensor(indices_b, values_b, (batch_size, timesteps, 1))
Expand Down

0 comments on commit 791ee23

Please sign in to comment.