Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'PrefetchDataset' object has no attribute 'output_shapes' #16

Open
joshisr10 opened this issue Oct 7, 2020 · 3 comments
Assignees

Comments

@joshisr10
Copy link

Could you please advise on this error?

I tried to resolve it through "tf.compat.v1.", but unsure of this new output_shapes error ---->

line 34, in build_dataset
dataset["channels"] = ds_train.output_shapes["image"][-1].value

AttributeError: 'PrefetchDataset' object has no attribute 'output_shapes'

~Sanket

@martinkersner martinkersner self-assigned this Oct 9, 2020
@martinkersner
Copy link
Member

Hello @joshisr10,

Thank you for reaching out! Have you tried to run the code with TensorFlow 1.13?

Cheers,
Martin

@ayeshamkzhh
Copy link

Tensorflow 1.13 also generates the same error.

@manuelmele
Copy link

I got the same error. Is there a workaround for this? Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants