-
Notifications
You must be signed in to change notification settings - Fork 3.5k
AttributeError: module 'tensorflow.contrib.data' has no attribute 'parallel_interleave' #558
Comments
T2T 1.4.3 needs TF 1.5 (as stated in setup.py). |
3q |
i also meet this question ,can you tell me how to solve it? |
@lihongwei521: update to the newest T2T and if possibly also TF>=1.5. |
@martinpopel the check you provided works~ my problem solved , training process well in tf1.4, thx! |
i meet this issue too in tf1.4, could you tell me how to fix it,please? |
@Yangandtom: If you cannot update to newer TF, you must downgrade T2T to a version which supports TF1.4 (this info is in setup.py). |
the setup,py is mean? I find the setup.py in the check which you provided, the version='1.5.6' |
I tried to install T2T 1.2.9 in tf 1.4.0. But this issue still exists. |
@Yangandtom @martinpopel I met the same problem, module has no attribute 'parallel_interleave' |
|
@martinpopel Thanks for your reply. After I installed T2T 1.2.9, I still meet the problem as @Yangandtom . I doubt tensorflow1.4 doesn't support tensorflow.contrib.data.parallel_interleave? |
If you are using TF1.4, a non-optimal solution is to call the function sloppy_interleave TF1.4Docs, which I believe is the older version of the function. This worked for me. |
This is because you are using an old version of tensorflow. The easiest fix is to install the latest version of tensorflow. If you need to be using your current version of tensorflow, perhaps for compatability with CUDA 8, you can change the line to the following: |
@levinwil This worked like magic to me! Could you tell me where to find this code? |
I wrote it myself. Glad I could help! |
Thank you! I've been trying to fix this problem for days! |
@ levinwil Thanks a lot man! Its work for me in Tensorflow 1.4 and add your line instead: and works to train mobilenet with tensorflow API |
File "/home/work/wangchao/python/lib/python3.6/site-packages/tensor2tensor/data_generators/problem.py", line 521, in dataset
tf.contrib.data.parallel_interleave(
AttributeError: module 'tensorflow.contrib.data' has no attribute 'parallel_interleave'
t2t version : 1.4.3
tf version : 1.4.1
The text was updated successfully, but these errors were encountered: