Skip to content

Commit c353ead

Browse files
pierrot0The TensorFlow Datasets Authors
authored and
The TensorFlow Datasets Authors
committed
Fix asqa_dataset_builder for numpy2 by using int64 for sample_id feature.
PiperOrigin-RevId: 668525486
1 parent dcf1036 commit c353ead

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorflow_datasets/datasets/asqa/asqa_dataset_builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
def _features():
2525
return tfds.features.FeaturesDict({
26-
'sample_id': np.int32,
26+
'sample_id': np.int64,
2727
'ambiguous_question': tfds.features.Text(
2828
doc='Disambiguated question from AmbigQA.'
2929
),
@@ -82,6 +82,7 @@ class Builder(tfds.core.GeneratorBasedBuilder):
8282

8383
VERSION = tfds.core.Version('1.0.0')
8484
RELEASE_NOTES = {
85+
'2.0.0': 'Sample ID goes from int32 (overflowing) to int64.',
8586
'1.0.0': 'Initial release.',
8687
}
8788

0 commit comments

Comments
 (0)