tfds-nightly 4.9.8.dev202503190044__py3-none-any.whl → 4.9.8.dev202503210044__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/utils/dtype_utils.py +1 -11
- {tfds_nightly-4.9.8.dev202503190044.dist-info → tfds_nightly-4.9.8.dev202503210044.dist-info}/METADATA +3 -2
- {tfds_nightly-4.9.8.dev202503190044.dist-info → tfds_nightly-4.9.8.dev202503210044.dist-info}/RECORD +8 -8
- {tfds_nightly-4.9.8.dev202503190044.dist-info → tfds_nightly-4.9.8.dev202503210044.dist-info}/WHEEL +1 -1
- {tfds_nightly-4.9.8.dev202503190044.dist-info → tfds_nightly-4.9.8.dev202503210044.dist-info}/entry_points.txt +0 -0
- {tfds_nightly-4.9.8.dev202503190044.dist-info → tfds_nightly-4.9.8.dev202503210044.dist-info/licenses}/AUTHORS +0 -0
- {tfds_nightly-4.9.8.dev202503190044.dist-info → tfds_nightly-4.9.8.dev202503210044.dist-info/licenses}/LICENSE +0 -0
- {tfds_nightly-4.9.8.dev202503190044.dist-info → tfds_nightly-4.9.8.dev202503210044.dist-info}/top_level.txt +0 -0
@@ -15,9 +15,8 @@
|
|
15
15
|
|
16
16
|
"""TFDS DType utils to handle both NumPy and TensorFlow DTypes."""
|
17
17
|
|
18
|
-
from typing import
|
18
|
+
from typing import Any, List, Type, Union, cast
|
19
19
|
|
20
|
-
from absl import logging
|
21
20
|
from etils import enp
|
22
21
|
import numpy as np
|
23
22
|
from tensorflow_datasets.core.utils import py_utils
|
@@ -40,15 +39,6 @@ def cast_to_numpy(dtype: type_utils.TfdsDType) -> np.dtype:
|
|
40
39
|
tf_already_loaded = enp.lazy.has_tf
|
41
40
|
if tf_already_loaded and isinstance(dtype, tf.dtypes.DType):
|
42
41
|
np_dtype = np.dtype(dtype.as_numpy_dtype)
|
43
|
-
logging.log_first_n(
|
44
|
-
logging.WARNING,
|
45
|
-
(
|
46
|
-
f'You use TensorFlow DType {dtype} in tfds.features '
|
47
|
-
'This will soon be deprecated in favor of NumPy DTypes. '
|
48
|
-
f'In the meantime it was converted to {np_dtype}.'
|
49
|
-
),
|
50
|
-
10,
|
51
|
-
)
|
52
42
|
return np_dtype
|
53
43
|
# Strings are managed as np.object_ (rather than np.str_) in order to
|
54
44
|
# optimize for memory and for consistency with tf.string:
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: tfds-nightly
|
3
|
-
Version: 4.9.8.
|
3
|
+
Version: 4.9.8.dev202503210044
|
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
|
@@ -260,6 +260,7 @@ Dynamic: download-url
|
|
260
260
|
Dynamic: home-page
|
261
261
|
Dynamic: keywords
|
262
262
|
Dynamic: license
|
263
|
+
Dynamic: license-file
|
263
264
|
Dynamic: provides-extra
|
264
265
|
Dynamic: requires-dist
|
265
266
|
Dynamic: requires-python
|
{tfds_nightly-4.9.8.dev202503190044.dist-info → tfds_nightly-4.9.8.dev202503210044.dist-info}/RECORD
RENAMED
@@ -248,7 +248,7 @@ tensorflow_datasets/core/utils/conversion_utils_test.py,sha256=Ipjqju_81kweBgqOY
|
|
248
248
|
tensorflow_datasets/core/utils/croissant_utils.py,sha256=-hPQQjNQ0f4zG7qKBG38ak4OfYZCZsJUiPkuMYb5ISw,4482
|
249
249
|
tensorflow_datasets/core/utils/croissant_utils_test.py,sha256=R5lQnwTXml9hSOrHwTav7CvAZQvAP3EaRxQJJ3MXOlk,4123
|
250
250
|
tensorflow_datasets/core/utils/docs.py,sha256=e8sua3eiqkDsPJUbYrgp_FUwnnHwMyMzTMNWKMHn464,1549
|
251
|
-
tensorflow_datasets/core/utils/dtype_utils.py,sha256=
|
251
|
+
tensorflow_datasets/core/utils/dtype_utils.py,sha256=E3Zwe_Hv6BiN_qv8VI4I1oHFd3MVgs2NCcimXMoahxI,3246
|
252
252
|
tensorflow_datasets/core/utils/dtype_utils_test.py,sha256=LAE2idzXz0BiNHELm3rmCdhwKIstkWj8ZRmztslcLi0,3259
|
253
253
|
tensorflow_datasets/core/utils/error_utils.py,sha256=VPBpQJPvM9wH2dcS9wDt1ueyW-IzYsLVbBLYyFAhHHI,3204
|
254
254
|
tensorflow_datasets/core/utils/error_utils_test.py,sha256=BuNVqUMkOt9zE8PtCW4X9xXUUIBOsBd8xdwK8sDevFY,2060
|
@@ -2455,10 +2455,10 @@ tensorflow_datasets/vision_language/wit/wit_test.py,sha256=DJ687VN9hAp6SLXnr_P12
|
|
2455
2455
|
tensorflow_datasets/vision_language/wit_kaggle/__init__.py,sha256=38tJQ73VHz8vOJn-AyZh2we2YJucbSRIgmgcrsC6bQM,719
|
2456
2456
|
tensorflow_datasets/vision_language/wit_kaggle/wit_kaggle.py,sha256=k-7YD1SGr5bASfdR2_09rrqz-8cpWdIcBWWEXhCvzuk,16903
|
2457
2457
|
tensorflow_datasets/vision_language/wit_kaggle/wit_kaggle_test.py,sha256=vLlluBW77ASNVC4ix7t8idkSUBI6q1-B7zmRV_ICCQM,1778
|
2458
|
-
tfds_nightly-4.9.8.
|
2459
|
-
tfds_nightly-4.9.8.
|
2460
|
-
tfds_nightly-4.9.8.
|
2461
|
-
tfds_nightly-4.9.8.
|
2462
|
-
tfds_nightly-4.9.8.
|
2463
|
-
tfds_nightly-4.9.8.
|
2464
|
-
tfds_nightly-4.9.8.
|
2458
|
+
tfds_nightly-4.9.8.dev202503210044.dist-info/licenses/AUTHORS,sha256=nvBG4WwfgjuOu1oZkuQKw9kg7X6rve679ObS-YDDmXg,309
|
2459
|
+
tfds_nightly-4.9.8.dev202503210044.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
2460
|
+
tfds_nightly-4.9.8.dev202503210044.dist-info/METADATA,sha256=aej_GUvFsa0fxoc_a5zIU5_JTLdSLJ-4p6y2XxK12Ms,11879
|
2461
|
+
tfds_nightly-4.9.8.dev202503210044.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
2462
|
+
tfds_nightly-4.9.8.dev202503210044.dist-info/entry_points.txt,sha256=eHEL7nF5y1uCY2FgkuYIdE062epJXlAQTSdq89px4p4,73
|
2463
|
+
tfds_nightly-4.9.8.dev202503210044.dist-info/top_level.txt,sha256=bAevmk9209s_oxVZVlN6hSDIVS423qrMQvmcWSvW4do,20
|
2464
|
+
tfds_nightly-4.9.8.dev202503210044.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|