Skip to content

Commit aff195f

Browse files
committed
update test_tensorflow_keras_models for numpy.str deprecation
1 parent 4f1264a commit aff195f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/models/test_tensorflow_keras_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def test_save_load_with_sequence_features(self, tmpdir, loss, optimizer, metrics
322322
indices_a[:, 0] = np.arange(10)
323323
inputs_a = tf.SparseTensor(indices_a, values_a, (batch_size, timesteps, 1))
324324

325-
values_b = np.zeros(10, dtype=np.str)
325+
values_b = np.zeros(10, dtype=str)
326326
indices_b = np.zeros((10, 3), dtype=np.int64)
327327
indices_b[:, 0] = np.arange(10)
328328
inputs_b = tf.SparseTensor(indices_b, values_b, (batch_size, timesteps, 1))

0 commit comments

Comments
 (0)