tfds-nightly 4.9.9.dev202508200044__py3-none-any.whl → 4.9.9.dev202508220044__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tensorflow_datasets/core/dataset_builders/croissant_builder_test.py +18 -4
- {tfds_nightly-4.9.9.dev202508200044.dist-info → tfds_nightly-4.9.9.dev202508220044.dist-info}/METADATA +1 -1
- {tfds_nightly-4.9.9.dev202508200044.dist-info → tfds_nightly-4.9.9.dev202508220044.dist-info}/RECORD +8 -8
- {tfds_nightly-4.9.9.dev202508200044.dist-info → tfds_nightly-4.9.9.dev202508220044.dist-info}/WHEEL +0 -0
- {tfds_nightly-4.9.9.dev202508200044.dist-info → tfds_nightly-4.9.9.dev202508220044.dist-info}/entry_points.txt +0 -0
- {tfds_nightly-4.9.9.dev202508200044.dist-info → tfds_nightly-4.9.9.dev202508220044.dist-info}/licenses/AUTHORS +0 -0
- {tfds_nightly-4.9.9.dev202508200044.dist-info → tfds_nightly-4.9.9.dev202508220044.dist-info}/licenses/LICENSE +0 -0
- {tfds_nightly-4.9.9.dev202508200044.dist-info → tfds_nightly-4.9.9.dev202508220044.dist-info}/top_level.txt +0 -0
@@ -15,6 +15,7 @@
|
|
15
15
|
|
16
16
|
"""Tests for croissant_builder."""
|
17
17
|
|
18
|
+
from typing import Any, Dict, List, Type
|
18
19
|
import numpy as np
|
19
20
|
import pytest
|
20
21
|
from tensorflow_datasets import testing
|
@@ -146,7 +147,10 @@ def _create_mlc_field(
|
|
146
147
|
],
|
147
148
|
)
|
148
149
|
def test_simple_datatype_converter(
|
149
|
-
mlc_field
|
150
|
+
mlc_field: mlc.Field,
|
151
|
+
expected_feature: type[Any],
|
152
|
+
int_dtype: np.dtype | None,
|
153
|
+
float_dtype: np.dtype | None,
|
150
154
|
):
|
151
155
|
actual_feature = croissant_builder.datatype_converter(
|
152
156
|
mlc_field,
|
@@ -252,7 +256,11 @@ def test_datatype_converter_bbox_with_invalid_format():
|
|
252
256
|
),
|
253
257
|
],
|
254
258
|
)
|
255
|
-
def test_datatype_converter_complex(
|
259
|
+
def test_datatype_converter_complex(
|
260
|
+
mlc_field: mlc.Field,
|
261
|
+
feature_type: Type[Any],
|
262
|
+
subfield_types: Dict[str, Type[Any]] | None,
|
263
|
+
):
|
256
264
|
actual_feature = croissant_builder.datatype_converter(mlc_field)
|
257
265
|
assert actual_feature.doc.desc == mlc_field.description
|
258
266
|
assert isinstance(actual_feature, feature_type)
|
@@ -411,7 +419,9 @@ def test_version_converter(tmp_path):
|
|
411
419
|
|
412
420
|
|
413
421
|
@pytest.fixture(name="crs_builder")
|
414
|
-
def mock_croissant_dataset_builder(
|
422
|
+
def mock_croissant_dataset_builder(
|
423
|
+
tmp_path, request
|
424
|
+
) -> croissant_builder.CroissantBuilder:
|
415
425
|
dataset_name = request.param["dataset_name"]
|
416
426
|
with testing.dummy_croissant_file(
|
417
427
|
dataset_name=dataset_name,
|
@@ -477,7 +487,11 @@ def test_croissant_builder(crs_builder):
|
|
477
487
|
indirect=["crs_builder"],
|
478
488
|
)
|
479
489
|
@pytest.mark.parametrize("split_name", ["train", "test"])
|
480
|
-
def test_download_and_prepare(
|
490
|
+
def test_download_and_prepare(
|
491
|
+
crs_builder: croissant_builder.CroissantBuilder,
|
492
|
+
expected_entries: List[Dict[str, Any]],
|
493
|
+
split_name: str,
|
494
|
+
):
|
481
495
|
crs_builder.download_and_prepare()
|
482
496
|
data_source = crs_builder.as_data_source(split=split_name)
|
483
497
|
expected_entries = [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tfds-nightly
|
3
|
-
Version: 4.9.9.
|
3
|
+
Version: 4.9.9.dev202508220044
|
4
4
|
Summary: tensorflow/datasets is a library of datasets ready to use with TensorFlow.
|
5
5
|
Home-page: https://github.com/tensorflow/datasets
|
6
6
|
Download-URL: https://github.com/tensorflow/datasets/tags
|
{tfds_nightly-4.9.9.dev202508200044.dist-info → tfds_nightly-4.9.9.dev202508220044.dist-info}/RECORD
RENAMED
@@ -142,7 +142,7 @@ tensorflow_datasets/core/dataset_builders/__init__.py,sha256=StTA3euephqDZdpTzJQ
|
|
142
142
|
tensorflow_datasets/core/dataset_builders/adhoc_builder.py,sha256=1a-5hVjf9t24SD9fWzDDuKoOrA-Vmydf5QxvU7ap-sI,9263
|
143
143
|
tensorflow_datasets/core/dataset_builders/adhoc_builder_test.py,sha256=yhRwrznK78MvHeWGRggnMTiyx_SlR1z30iD5VU3Gweo,13096
|
144
144
|
tensorflow_datasets/core/dataset_builders/croissant_builder.py,sha256=XmnbIKiEN9OnY_RC8P7-83hbUfvtuJhbm24HfNFpiQs,17088
|
145
|
-
tensorflow_datasets/core/dataset_builders/croissant_builder_test.py,sha256=
|
145
|
+
tensorflow_datasets/core/dataset_builders/croissant_builder_test.py,sha256=_8JVvhkv_QRUhN4GEw6V1PEryJXp8-DLzuVKzjkozgo,15370
|
146
146
|
tensorflow_datasets/core/dataset_builders/huggingface_dataset_builder.py,sha256=Loq3qeGk1Ias-d2oT_dK47BRNgTA4LKJchNGh7aA4a0,18313
|
147
147
|
tensorflow_datasets/core/dataset_builders/huggingface_dataset_builder_test.py,sha256=6N3DLsry9LhDqhpleaoXrrhaGiLJMBgUlwDnAji-1fI,4389
|
148
148
|
tensorflow_datasets/core/dataset_builders/view_builder.py,sha256=eaCtjN5Vg4rK8JD3auA4PhF9mjH5HvQ9dslDX8LbwyM,11907
|
@@ -2472,10 +2472,10 @@ tensorflow_datasets/vision_language/wit/wit_test.py,sha256=PXS8DMNW-MDrT2p5oy4Ic
|
|
2472
2472
|
tensorflow_datasets/vision_language/wit_kaggle/__init__.py,sha256=vGwSGeM8WE4Q-l0-eEE1sBojmk6YT0l1OO60AWa4Q40,719
|
2473
2473
|
tensorflow_datasets/vision_language/wit_kaggle/wit_kaggle.py,sha256=q-vX_FBzIwsFxL4sY9vuyQ3UQD2PLM4yhUR4U6l-qao,16903
|
2474
2474
|
tensorflow_datasets/vision_language/wit_kaggle/wit_kaggle_test.py,sha256=ZymHT1NkmD-pUnh3BmM3_g30c5afsWYnmqDD9dVyDSA,1778
|
2475
|
-
tfds_nightly-4.9.9.
|
2476
|
-
tfds_nightly-4.9.9.
|
2477
|
-
tfds_nightly-4.9.9.
|
2478
|
-
tfds_nightly-4.9.9.
|
2479
|
-
tfds_nightly-4.9.9.
|
2480
|
-
tfds_nightly-4.9.9.
|
2481
|
-
tfds_nightly-4.9.9.
|
2475
|
+
tfds_nightly-4.9.9.dev202508220044.dist-info/licenses/AUTHORS,sha256=nvBG4WwfgjuOu1oZkuQKw9kg7X6rve679ObS-YDDmXg,309
|
2476
|
+
tfds_nightly-4.9.9.dev202508220044.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
2477
|
+
tfds_nightly-4.9.9.dev202508220044.dist-info/METADATA,sha256=IXi22mwrr5b-YerF-dy_Uktzuu2gjT2_uUnwJTHKUHw,11291
|
2478
|
+
tfds_nightly-4.9.9.dev202508220044.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
2479
|
+
tfds_nightly-4.9.9.dev202508220044.dist-info/entry_points.txt,sha256=eHEL7nF5y1uCY2FgkuYIdE062epJXlAQTSdq89px4p4,73
|
2480
|
+
tfds_nightly-4.9.9.dev202508220044.dist-info/top_level.txt,sha256=bAevmk9209s_oxVZVlN6hSDIVS423qrMQvmcWSvW4do,20
|
2481
|
+
tfds_nightly-4.9.9.dev202508220044.dist-info/RECORD,,
|
{tfds_nightly-4.9.9.dev202508200044.dist-info → tfds_nightly-4.9.9.dev202508220044.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|