We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b534a commit 33be835Copy full SHA for 33be835
tensorflow_datasets/core/beam_utils_test.py
@@ -51,6 +51,9 @@ def test_read_from_tfds(
51
dummy_dataset, split=split, workers_per_shard=workers_per_shard
52
)
53
| beam.Map(dataset_utils.as_numpy)
54
+ # Post numpy2, we don't get `{'id': 0}` but
55
+ # `{'id': np.int64(0)}`
56
+ | beam.Map(lambda x: {'id': int(x['id'])})
57
| beam.io.WriteToText(os.fspath(tmp_path / 'out.txt'))
58
59
0 commit comments