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

Ch2, tensorflow import issue #524

Open
worthy7 opened this issue Jul 8, 2021 · 1 comment
Open

Ch2, tensorflow import issue #524

worthy7 opened this issue Jul 8, 2021 · 1 comment

Comments

@worthy7
Copy link

worthy7 commented Jul 8, 2021

Hi there, I was tryting to just run all cells on the tensorflow chapter 2 book, and it hits this error right at the start.

AttributeError                            Traceback (most recent call last)
<ipython-input-2-e7f38f79c510> in <module>()
     38 
     39 import tensorflow as tf
---> 40 tfe = tf.contrib.eager
     41 
     42 # Eager Execution

AttributeError: module 'tensorflow' has no attribute 'contrib'
@jonwarghed
Copy link

Yes the code is written for tensorflow 1 not tensorflow 2

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

2 participants