Created
March 5, 2020 05:45
-
-
Save levskaya/d8bd85e188a9836ad9107d874965d94c to your computer and use it in GitHub Desktop.
tensorflow_dataset import bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [2]: import tensorflow_datasets as tfds | |
--------------------------------------------------------------------------- | |
AttributeError Traceback (most recent call last) | |
<ipython-input-2-46a8a2031c9c> in <module> | |
----> 1 import tensorflow_datasets as tfds | |
~/envs/flax/lib/python3.5/site-packages/tensorflow_datasets/__init__.py in <module> | |
44 # needs to happen before anything else, since the imports below will try to | |
45 # import tensorflow, too. | |
---> 46 from tensorflow_datasets.core import tf_compat | |
47 tf_compat.ensure_tf_install() | |
48 | |
~/envs/flax/lib/python3.5/site-packages/tensorflow_datasets/core/__init__.py in <module> | |
19 # import tensorflow, too. | |
20 from tensorflow_datasets.core import tf_compat | |
---> 21 tf_compat.ensure_tf_install() | |
22 | |
23 from tensorflow_datasets.core.api_utils import disallow_positional_args # pylint:disable=g-import-not-at-top | |
~/envs/flax/lib/python3.5/site-packages/tensorflow_datasets/core/tf_compat.py in ensure_tf_install() | |
64 required="1.13.0", | |
65 present=tf.__version__)) | |
---> 66 _patch_tf(tf) | |
67 | |
68 | |
~/envs/flax/lib/python3.5/site-packages/tensorflow_datasets/core/tf_compat.py in _patch_tf(tf) | |
78 if v_1_13 <= tf_version < v_2: | |
79 TF_PATCH = "tf1_13" | |
---> 80 _patch_for_tf1_13(tf) | |
81 | |
82 | |
~/envs/flax/lib/python3.5/site-packages/tensorflow_datasets/core/tf_compat.py in _patch_for_tf1_13(tf) | |
94 if not hasattr(tf.autograph.experimental, "do_not_convert"): | |
95 tf.autograph.experimental.do_not_convert = ( | |
---> 96 tf.contrib.autograph.do_not_convert) | |
97 | |
98 | |
AttributeError: module 'tensorflow.compat.v2' has no attribute 'contrib' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment