We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a34edd commit b5d261fCopy full SHA for b5d261f
tensorflow_datasets/__init__.py
@@ -40,6 +40,7 @@
40
41
_TIMESTAMP_IMPORT_STARTS = time.time()
42
from absl import logging
43
+from etils import epy
44
import tensorflow_datasets.core.logging as _tfds_logging
45
from tensorflow_datasets.core.logging import call_metadata as _call_metadata
46
@@ -55,7 +56,7 @@
55
56
# pytype: disable=import-error
57
# For builds that don't include all dataset builders, we don't want to fail on
58
# import errors of dataset builders.
- try:
59
+ with epy.lazy_imports():
60
from tensorflow_datasets import audio
61
from tensorflow_datasets import graphs
62
from tensorflow_datasets import image
@@ -79,8 +80,6 @@
79
80
from tensorflow_datasets import video
81
from tensorflow_datasets import vision_language
82
- except ImportError:
83
- pass
84
# pytype: enable=import-error
85
86
_import_time_ms_dataset_builders = int(
0 commit comments